<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>OpenBB Interactive Tables</title>
    <script>
      if (
        // check if user had saved dark as their
        // theme when accessing page before
        localStorage.theme === "dark" ||
        // or user's requesting dark color
        // scheme through operating system
        (!("theme" in localStorage) &&
          window.matchMedia("(prefers-color-scheme: dark)").matches)
      ) {
        // then if we have access to the document and the element
        // we add the dark class to the html element and
        // store the dark value in the localStorage
        if (document && document.documentElement) {
          document.documentElement.classList.add("dark");
          localStorage.setItem("theme", "dark");
        }
      } else {
        // else if we have access to the document and the element
        // we remove the dark class to the html element and
        // store the value light in the localStorage
        if (document && document.documentElement) {
          document.documentElement.classList.remove("dark");
          localStorage.setItem("theme", "light");
        }
      }
    </script>
    <script type="module" crossorigin>function MS(e,n){for(var r=0;r<n.length;r++){const i=n[r];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(i,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function r(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(a){if(a.ep)return;a.ep=!0;const l=r(a);fetch(a.href,l)}})();function ro(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gu={exports:{}},Xo={},hu={exports:{}},Ie={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var yg;function kS(){if(yg)return Ie;yg=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),m=Symbol.iterator;function S(O){return O===null||typeof O!="object"?null:(O=m&&O[m]||O["@@iterator"],typeof O=="function"?O:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,x={};function R(O,H,ae){this.props=O,this.context=H,this.refs=x,this.updater=ae||y}R.prototype.isReactComponent={},R.prototype.setState=function(O,H){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,H,"setState")},R.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function T(){}T.prototype=R.prototype;function _(O,H,ae){this.props=O,this.context=H,this.refs=x,this.updater=ae||y}var I=_.prototype=new T;I.constructor=_,P(I,R.prototype),I.isPureReactComponent=!0;var N=Array.isArray,L=Object.prototype.hasOwnProperty,U={current:null},b={key:!0,ref:!0,__self:!0,__source:!0};function A(O,H,ae){var ce,Y={},se=null,K=null;if(H!=null)for(ce in H.ref!==void 0&&(K=H.ref),H.key!==void 0&&(se=""+H.key),H)L.call(H,ce)&&!b.hasOwnProperty(ce)&&(Y[ce]=H[ce]);var oe=arguments.length-2;if(oe===1)Y.children=ae;else if(1<oe){for(var te=Array(oe),de=0;de<oe;de++)te[de]=arguments[de+2];Y.children=te}if(O&&O.defaultProps)for(ce in oe=O.defaultProps,oe)Y[ce]===void 0&&(Y[ce]=oe[ce]);return{$$typeof:e,type:O,key:se,ref:K,props:Y,_owner:U.current}}function X(O,H){return{$$typeof:e,type:O.type,key:H,ref:O.ref,props:O.props,_owner:O._owner}}function Q(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function ee(O){var H={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(ae){return H[ae]})}var re=/\/+/g;function Z(O,H){return typeof O=="object"&&O!==null&&O.key!=null?ee(""+O.key):H.toString(36)}function W(O,H,ae,ce,Y){var se=typeof O;(se==="undefined"||se==="boolean")&&(O=null);var K=!1;if(O===null)K=!0;else switch(se){case"string":case"number":K=!0;break;case"object":switch(O.$$typeof){case e:case n:K=!0}}if(K)return K=O,Y=Y(K),O=ce===""?"."+Z(K,0):ce,N(Y)?(ae="",O!=null&&(ae=O.replace(re,"$&/")+"/"),W(Y,H,ae,"",function(de){return de})):Y!=null&&(Q(Y)&&(Y=X(Y,ae+(!Y.key||K&&K.key===Y.key?"":(""+Y.key).replace(re,"$&/")+"/")+O)),H.push(Y)),1;if(K=0,ce=ce===""?".":ce+":",N(O))for(var oe=0;oe<O.length;oe++){se=O[oe];var te=ce+Z(se,oe);K+=W(se,H,ae,te,Y)}else if(te=S(O),typeof te=="function")for(O=te.call(O),oe=0;!(se=O.next()).done;)se=se.value,te=ce+Z(se,oe++),K+=W(se,H,ae,te,Y);else if(se==="object")throw H=String(O),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.");return K}function ue(O,H,ae){if(O==null)return O;var ce=[],Y=0;return W(O,ce,"","",function(se){return H.call(ae,se,Y++)}),ce}function B(O){if(O._status===-1){var H=O._result;H=H(),H.then(function(ae){(O._status===0||O._status===-1)&&(O._status=1,O._result=ae)},function(ae){(O._status===0||O._status===-1)&&(O._status=2,O._result=ae)}),O._status===-1&&(O._status=0,O._result=H)}if(O._status===1)return O._result.default;throw O._result}var q={current:null},$={transition:null},F={ReactCurrentDispatcher:q,ReactCurrentBatchConfig:$,ReactCurrentOwner:U};function G(){throw Error("act(...) is not supported in production builds of React.")}return Ie.Children={map:ue,forEach:function(O,H,ae){ue(O,function(){H.apply(this,arguments)},ae)},count:function(O){var H=0;return ue(O,function(){H++}),H},toArray:function(O){return ue(O,function(H){return H})||[]},only:function(O){if(!Q(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},Ie.Component=R,Ie.Fragment=r,Ie.Profiler=a,Ie.PureComponent=_,Ie.StrictMode=i,Ie.Suspense=h,Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,Ie.act=G,Ie.cloneElement=function(O,H,ae){if(O==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+O+".");var ce=P({},O.props),Y=O.key,se=O.ref,K=O._owner;if(H!=null){if(H.ref!==void 0&&(se=H.ref,K=U.current),H.key!==void 0&&(Y=""+H.key),O.type&&O.type.defaultProps)var oe=O.type.defaultProps;for(te in H)L.call(H,te)&&!b.hasOwnProperty(te)&&(ce[te]=H[te]===void 0&&oe!==void 0?oe[te]:H[te])}var te=arguments.length-2;if(te===1)ce.children=ae;else if(1<te){oe=Array(te);for(var de=0;de<te;de++)oe[de]=arguments[de+2];ce.children=oe}return{$$typeof:e,type:O.type,key:Y,ref:se,props:ce,_owner:K}},Ie.createContext=function(O){return O={$$typeof:c,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},O.Provider={$$typeof:l,_context:O},O.Consumer=O},Ie.createElement=A,Ie.createFactory=function(O){var H=A.bind(null,O);return H.type=O,H},Ie.createRef=function(){return{current:null}},Ie.forwardRef=function(O){return{$$typeof:d,render:O}},Ie.isValidElement=Q,Ie.lazy=function(O){return{$$typeof:w,_payload:{_status:-1,_result:O},_init:B}},Ie.memo=function(O,H){return{$$typeof:v,type:O,compare:H===void 0?null:H}},Ie.startTransition=function(O){var H=$.transition;$.transition={};try{O()}finally{$.transition=H}},Ie.unstable_act=G,Ie.useCallback=function(O,H){return q.current.useCallback(O,H)},Ie.useContext=function(O){return q.current.useContext(O)},Ie.useDebugValue=function(){},Ie.useDeferredValue=function(O){return q.current.useDeferredValue(O)},Ie.useEffect=function(O,H){return q.current.useEffect(O,H)},Ie.useId=function(){return q.current.useId()},Ie.useImperativeHandle=function(O,H,ae){return q.current.useImperativeHandle(O,H,ae)},Ie.useInsertionEffect=function(O,H){return q.current.useInsertionEffect(O,H)},Ie.useLayoutEffect=function(O,H){return q.current.useLayoutEffect(O,H)},Ie.useMemo=function(O,H){return q.current.useMemo(O,H)},Ie.useReducer=function(O,H,ae){return q.current.useReducer(O,H,ae)},Ie.useRef=function(O){return q.current.useRef(O)},Ie.useState=function(O){return q.current.useState(O)},Ie.useSyncExternalStore=function(O,H,ae){return q.current.useSyncExternalStore(O,H,ae)},Ie.useTransition=function(){return q.current.useTransition()},Ie.version="18.3.1",Ie}var wg;function $c(){return wg||(wg=1,hu.exports=kS()),hu.exports}/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Sg;function $S(){if(Sg)return Xo;Sg=1;var e=$c(),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,h,v){var w,m={},S=null,y=null;v!==void 0&&(S=""+v),h.key!==void 0&&(S=""+h.key),h.ref!==void 0&&(y=h.ref);for(w in h)i.call(h,w)&&!l.hasOwnProperty(w)&&(m[w]=h[w]);if(d&&d.defaultProps)for(w in h=d.defaultProps,h)m[w]===void 0&&(m[w]=h[w]);return{$$typeof:n,type:d,key:S,ref:y,props:m,_owner:a.current}}return Xo.Fragment=r,Xo.jsx=c,Xo.jsxs=c,Xo}var xg;function NS(){return xg||(xg=1,gu.exports=$S()),gu.exports}var E=NS(),p=$c();const Ye=ro(p),Nc=MS({__proto__:null,default:Ye},[p]);var xs={},mu={exports:{}},Ct={},vu={exports:{}},yu={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Cg;function bS(){return Cg||(Cg=1,(function(e){function n($,F){var G=$.length;$.push(F);e:for(;0<G;){var O=G-1>>>1,H=$[O];if(0<a(H,F))$[O]=F,$[G]=H,G=O;else break e}}function r($){return $.length===0?null:$[0]}function i($){if($.length===0)return null;var F=$[0],G=$.pop();if(G!==F){$[0]=G;e:for(var O=0,H=$.length,ae=H>>>1;O<ae;){var ce=2*(O+1)-1,Y=$[ce],se=ce+1,K=$[se];if(0>a(Y,G))se<H&&0>a(K,Y)?($[O]=K,$[se]=G,O=se):($[O]=Y,$[ce]=G,O=ce);else if(se<H&&0>a(K,G))$[O]=K,$[se]=G,O=se;else break e}}return F}function a($,F){var G=$.sortIndex-F.sortIndex;return G!==0?G:$.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],v=[],w=1,m=null,S=3,y=!1,P=!1,x=!1,R=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function I($){for(var F=r(v);F!==null;){if(F.callback===null)i(v);else if(F.startTime<=$)i(v),F.sortIndex=F.expirationTime,n(h,F);else break;F=r(v)}}function N($){if(x=!1,I($),!P)if(r(h)!==null)P=!0,B(L);else{var F=r(v);F!==null&&q(N,F.startTime-$)}}function L($,F){P=!1,x&&(x=!1,T(A),A=-1),y=!0;var G=S;try{for(I(F),m=r(h);m!==null&&(!(m.expirationTime>F)||$&&!ee());){var O=m.callback;if(typeof O=="function"){m.callback=null,S=m.priorityLevel;var H=O(m.expirationTime<=F);F=e.unstable_now(),typeof H=="function"?m.callback=H:m===r(h)&&i(h),I(F)}else i(h);m=r(h)}if(m!==null)var ae=!0;else{var ce=r(v);ce!==null&&q(N,ce.startTime-F),ae=!1}return ae}finally{m=null,S=G,y=!1}}var U=!1,b=null,A=-1,X=5,Q=-1;function ee(){return!(e.unstable_now()-Q<X)}function re(){if(b!==null){var $=e.unstable_now();Q=$;var F=!0;try{F=b(!0,$)}finally{F?Z():(U=!1,b=null)}}else U=!1}var Z;if(typeof _=="function")Z=function(){_(re)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,ue=W.port2;W.port1.onmessage=re,Z=function(){ue.postMessage(null)}}else Z=function(){R(re,0)};function B($){b=$,U||(U=!0,Z())}function q($,F){A=R(function(){$(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_continueExecution=function(){P||y||(P=!0,B(L))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return S},e.unstable_getFirstCallbackNode=function(){return r(h)},e.unstable_next=function($){switch(S){case 1:case 2:case 3:var F=3;break;default:F=S}var G=S;S=F;try{return $()}finally{S=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,F){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var G=S;S=$;try{return F()}finally{S=G}},e.unstable_scheduleCallback=function($,F,G){var O=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?O+G:O):G=O,$){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=G+H,$={id:w++,callback:F,priorityLevel:$,startTime:G,expirationTime:H,sortIndex:-1},G>O?($.sortIndex=G,n(v,$),r(h)===null&&$===r(v)&&(x?(T(A),A=-1):x=!0,q(N,G-O))):($.sortIndex=H,n(h,$),P||y||(P=!0,B(L))),$},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function($){var F=S;return function(){var G=S;S=F;try{return $.apply(this,arguments)}finally{S=G}}}})(yu)),yu}var Eg;function AS(){return Eg||(Eg=1,vu.exports=bS()),vu.exports}/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Rg;function LS(){if(Rg)return Ct;Rg=1;var e=$c(),n=AS();function r(t){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+t,s=1;s<arguments.length;s++)o+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+t+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,a={};function l(t,o){c(t,o),c(t+"Capture",o)}function c(t,o){for(a[t]=o,t=0;t<o.length;t++)i.add(o[t])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,w={},m={};function S(t){return h.call(m,t)?!0:h.call(w,t)?!1:v.test(t)?m[t]=!0:(w[t]=!0,!1)}function y(t,o,s,u){if(s!==null&&s.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return u?!1:s!==null?!s.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function P(t,o,s,u){if(o===null||typeof o>"u"||y(t,o,s,u))return!0;if(u)return!1;if(s!==null)switch(s.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function x(t,o,s,u,f,g,C){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=u,this.attributeNamespace=f,this.mustUseProperty=s,this.propertyName=t,this.type=o,this.sanitizeURL=g,this.removeEmptyString=C}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){R[t]=new x(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var o=t[0];R[o]=new x(o,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){R[t]=new x(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){R[t]=new x(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){R[t]=new x(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){R[t]=new x(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){R[t]=new x(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){R[t]=new x(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){R[t]=new x(t,5,!1,t.toLowerCase(),null,!1,!1)});var T=/[\-:]([a-z])/g;function _(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var o=t.replace(T,_);R[o]=new x(o,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var o=t.replace(T,_);R[o]=new x(o,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var o=t.replace(T,_);R[o]=new x(o,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){R[t]=new x(t,1,!1,t.toLowerCase(),null,!1,!1)}),R.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){R[t]=new x(t,1,!1,t.toLowerCase(),null,!0,!0)});function I(t,o,s,u){var f=R.hasOwnProperty(o)?R[o]:null;(f!==null?f.type!==0:u||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(P(o,s,f,u)&&(s=null),u||f===null?S(o)&&(s===null?t.removeAttribute(o):t.setAttribute(o,""+s)):f.mustUseProperty?t[f.propertyName]=s===null?f.type===3?!1:"":s:(o=f.attributeName,u=f.attributeNamespace,s===null?t.removeAttribute(o):(f=f.type,s=f===3||f===4&&s===!0?"":""+s,u?t.setAttributeNS(u,o,s):t.setAttribute(o,s))))}var N=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,L=Symbol.for("react.element"),U=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),Q=Symbol.for("react.provider"),ee=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),q=Symbol.for("react.offscreen"),$=Symbol.iterator;function F(t){return t===null||typeof t!="object"?null:(t=$&&t[$]||t["@@iterator"],typeof t=="function"?t:null)}var G=Object.assign,O;function H(t){if(O===void 0)try{throw Error()}catch(s){var o=s.stack.trim().match(/\n( *(at )?)/);O=o&&o[1]||""}return`
`+O+t}var ae=!1;function ce(t,o){if(!t||ae)return"";ae=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(z){var u=z}Reflect.construct(t,[],o)}else{try{o.call()}catch(z){u=z}t.call(o.prototype)}else{try{throw Error()}catch(z){u=z}t()}}catch(z){if(z&&u&&typeof z.stack=="string"){for(var f=z.stack.split(`
`),g=u.stack.split(`
`),C=f.length-1,D=g.length-1;1<=C&&0<=D&&f[C]!==g[D];)D--;for(;1<=C&&0<=D;C--,D--)if(f[C]!==g[D]){if(C!==1||D!==1)do if(C--,D--,0>D||f[C]!==g[D]){var M=`
`+f[C].replace(" at new "," at ");return t.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",t.displayName)),M}while(1<=C&&0<=D);break}}}finally{ae=!1,Error.prepareStackTrace=s}return(t=t?t.displayName||t.name:"")?H(t):""}function Y(t){switch(t.tag){case 5:return H(t.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return t=ce(t.type,!1),t;case 11:return t=ce(t.type.render,!1),t;case 1:return t=ce(t.type,!0),t;default:return""}}function se(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case b:return"Fragment";case U:return"Portal";case X:return"Profiler";case A:return"StrictMode";case Z:return"Suspense";case W:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case ee:return(t.displayName||"Context")+".Consumer";case Q:return(t._context.displayName||"Context")+".Provider";case re:var o=t.render;return t=t.displayName,t||(t=o.displayName||o.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ue:return o=t.displayName||null,o!==null?o:se(t.type)||"Memo";case B:o=t._payload,t=t._init;try{return se(t(o))}catch{}}return null}function K(t){var o=t.type;switch(t.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=o.render,t=t.displayName||t.name||"",o.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return se(o);case 8:return o===A?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function oe(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function te(t){var o=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function de(t){var o=te(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,o),u=""+t[o];if(!t.hasOwnProperty(o)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,g=s.set;return Object.defineProperty(t,o,{configurable:!0,get:function(){return f.call(this)},set:function(C){u=""+C,g.call(this,C)}}),Object.defineProperty(t,o,{enumerable:s.enumerable}),{getValue:function(){return u},setValue:function(C){u=""+C},stopTracking:function(){t._valueTracker=null,delete t[o]}}}}function pe(t){t._valueTracker||(t._valueTracker=de(t))}function Pe(t){if(!t)return!1;var o=t._valueTracker;if(!o)return!0;var s=o.getValue(),u="";return t&&(u=te(t)?t.checked?"true":"false":t.value),t=u,t!==s?(o.setValue(t),!0):!1}function we(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function he(t,o){var s=o.checked;return G({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??t._wrapperState.initialChecked})}function Be(t,o){var s=o.defaultValue==null?"":o.defaultValue,u=o.checked!=null?o.checked:o.defaultChecked;s=oe(o.value!=null?o.value:s),t._wrapperState={initialChecked:u,initialValue:s,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function kt(t,o){o=o.checked,o!=null&&I(t,"checked",o,!1)}function $t(t,o){kt(t,o);var s=oe(o.value),u=o.type;if(s!=null)u==="number"?(s===0&&t.value===""||t.value!=s)&&(t.value=""+s):t.value!==""+s&&(t.value=""+s);else if(u==="submit"||u==="reset"){t.removeAttribute("value");return}o.hasOwnProperty("value")?Fe(t,o.type,s):o.hasOwnProperty("defaultValue")&&Fe(t,o.type,oe(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(t.defaultChecked=!!o.defaultChecked)}function ao(t,o,s){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var u=o.type;if(!(u!=="submit"&&u!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+t._wrapperState.initialValue,s||o===t.value||(t.value=o),t.defaultValue=o}s=t.name,s!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,s!==""&&(t.name=s)}function Fe(t,o,s){(o!=="number"||we(t.ownerDocument)!==t)&&(s==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+s&&(t.defaultValue=""+s))}var Ne=Array.isArray;function _n(t,o,s,u){if(t=t.options,o){o={};for(var f=0;f<s.length;f++)o["$"+s[f]]=!0;for(s=0;s<t.length;s++)f=o.hasOwnProperty("$"+t[s].value),t[s].selected!==f&&(t[s].selected=f),f&&u&&(t[s].defaultSelected=!0)}else{for(s=""+oe(s),o=null,f=0;f<t.length;f++){if(t[f].value===s){t[f].selected=!0,u&&(t[f].defaultSelected=!0);return}o!==null||t[f].disabled||(o=t[f])}o!==null&&(o.selected=!0)}}function Rl(t,o){if(o.dangerouslySetInnerHTML!=null)throw Error(r(91));return G({},o,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Td(t,o){var s=o.value;if(s==null){if(s=o.children,o=o.defaultValue,s!=null){if(o!=null)throw Error(r(92));if(Ne(s)){if(1<s.length)throw Error(r(93));s=s[0]}o=s}o==null&&(o=""),s=o}t._wrapperState={initialValue:oe(s)}}function Id(t,o){var s=oe(o.value),u=oe(o.defaultValue);s!=null&&(s=""+s,s!==t.value&&(t.value=s),o.defaultValue==null&&t.defaultValue!==s&&(t.defaultValue=s)),u!=null&&(t.defaultValue=""+u)}function Dd(t){var o=t.textContent;o===t._wrapperState.initialValue&&o!==""&&o!==null&&(t.value=o)}function Od(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Pl(t,o){return t==null||t==="http://www.w3.org/1999/xhtml"?Od(o):t==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var pi,Md=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,s,u,f){MSApp.execUnsafeLocalFunction(function(){return t(o,s,u,f)})}:t})(function(t,o){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=o;else{for(pi=pi||document.createElement("div"),pi.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=pi.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;o.firstChild;)t.appendChild(o.firstChild)}});function uo(t,o){if(o){var s=t.firstChild;if(s&&s===t.lastChild&&s.nodeType===3){s.nodeValue=o;return}}t.textContent=o}var co={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bw=["Webkit","ms","Moz","O"];Object.keys(co).forEach(function(t){bw.forEach(function(o){o=o+t.charAt(0).toUpperCase()+t.substring(1),co[o]=co[t]})});function kd(t,o,s){return o==null||typeof o=="boolean"||o===""?"":s||typeof o!="number"||o===0||co.hasOwnProperty(t)&&co[t]?(""+o).trim():o+"px"}function $d(t,o){t=t.style;for(var s in o)if(o.hasOwnProperty(s)){var u=s.indexOf("--")===0,f=kd(s,o[s],u);s==="float"&&(s="cssFloat"),u?t.setProperty(s,f):t[s]=f}}var Aw=G({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _l(t,o){if(o){if(Aw[t]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(r(137,t));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(r(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(r(61))}if(o.style!=null&&typeof o.style!="object")throw Error(r(62))}}function Tl(t,o){if(t.indexOf("-")===-1)return typeof o.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Il=null;function Dl(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ol=null,xr=null,Cr=null;function Nd(t){if(t=$o(t)){if(typeof Ol!="function")throw Error(r(280));var o=t.stateNode;o&&(o=Ai(o),Ol(t.stateNode,t.type,o))}}function bd(t){xr?Cr?Cr.push(t):Cr=[t]:xr=t}function Ad(){if(xr){var t=xr,o=Cr;if(Cr=xr=null,Nd(t),o)for(t=0;t<o.length;t++)Nd(o[t])}}function Ld(t,o){return t(o)}function Fd(){}var Ml=!1;function jd(t,o,s){if(Ml)return t(o,s);Ml=!0;try{return Ld(t,o,s)}finally{Ml=!1,(xr!==null||Cr!==null)&&(Fd(),Ad())}}function fo(t,o){var s=t.stateNode;if(s===null)return null;var u=Ai(s);if(u===null)return null;s=u[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(t=t.type,u=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!u;break e;default:t=!1}if(t)return null;if(s&&typeof s!="function")throw Error(r(231,o,typeof s));return s}var kl=!1;if(d)try{var po={};Object.defineProperty(po,"passive",{get:function(){kl=!0}}),window.addEventListener("test",po,po),window.removeEventListener("test",po,po)}catch{kl=!1}function Lw(t,o,s,u,f,g,C,D,M){var z=Array.prototype.slice.call(arguments,3);try{o.apply(s,z)}catch(ne){this.onError(ne)}}var go=!1,gi=null,hi=!1,$l=null,Fw={onError:function(t){go=!0,gi=t}};function jw(t,o,s,u,f,g,C,D,M){go=!1,gi=null,Lw.apply(Fw,arguments)}function Vw(t,o,s,u,f,g,C,D,M){if(jw.apply(this,arguments),go){if(go){var z=gi;go=!1,gi=null}else throw Error(r(198));hi||(hi=!0,$l=z)}}function Jn(t){var o=t,s=t;if(t.alternate)for(;o.return;)o=o.return;else{t=o;do o=t,(o.flags&4098)!==0&&(s=o.return),t=o.return;while(t)}return o.tag===3?s:null}function Vd(t){if(t.tag===13){var o=t.memoizedState;if(o===null&&(t=t.alternate,t!==null&&(o=t.memoizedState)),o!==null)return o.dehydrated}return null}function zd(t){if(Jn(t)!==t)throw Error(r(188))}function zw(t){var o=t.alternate;if(!o){if(o=Jn(t),o===null)throw Error(r(188));return o!==t?null:t}for(var s=t,u=o;;){var f=s.return;if(f===null)break;var g=f.alternate;if(g===null){if(u=f.return,u!==null){s=u;continue}break}if(f.child===g.child){for(g=f.child;g;){if(g===s)return zd(f),t;if(g===u)return zd(f),o;g=g.sibling}throw Error(r(188))}if(s.return!==u.return)s=f,u=g;else{for(var C=!1,D=f.child;D;){if(D===s){C=!0,s=f,u=g;break}if(D===u){C=!0,u=f,s=g;break}D=D.sibling}if(!C){for(D=g.child;D;){if(D===s){C=!0,s=g,u=f;break}if(D===u){C=!0,u=g,s=f;break}D=D.sibling}if(!C)throw Error(r(189))}}if(s.alternate!==u)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?t:o}function Hd(t){return t=zw(t),t!==null?Ud(t):null}function Ud(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var o=Ud(t);if(o!==null)return o;t=t.sibling}return null}var Bd=n.unstable_scheduleCallback,Wd=n.unstable_cancelCallback,Hw=n.unstable_shouldYield,Uw=n.unstable_requestPaint,We=n.unstable_now,Bw=n.unstable_getCurrentPriorityLevel,Nl=n.unstable_ImmediatePriority,Gd=n.unstable_UserBlockingPriority,mi=n.unstable_NormalPriority,Ww=n.unstable_LowPriority,Kd=n.unstable_IdlePriority,vi=null,tn=null;function Gw(t){if(tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(vi,t,void 0,(t.current.flags&128)===128)}catch{}}var Bt=Math.clz32?Math.clz32:qw,Kw=Math.log,Xw=Math.LN2;function qw(t){return t>>>=0,t===0?32:31-(Kw(t)/Xw|0)|0}var yi=64,wi=4194304;function ho(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Si(t,o){var s=t.pendingLanes;if(s===0)return 0;var u=0,f=t.suspendedLanes,g=t.pingedLanes,C=s&268435455;if(C!==0){var D=C&~f;D!==0?u=ho(D):(g&=C,g!==0&&(u=ho(g)))}else C=s&~f,C!==0?u=ho(C):g!==0&&(u=ho(g));if(u===0)return 0;if(o!==0&&o!==u&&(o&f)===0&&(f=u&-u,g=o&-o,f>=g||f===16&&(g&4194240)!==0))return o;if((u&4)!==0&&(u|=s&16),o=t.entangledLanes,o!==0)for(t=t.entanglements,o&=u;0<o;)s=31-Bt(o),f=1<<s,u|=t[s],o&=~f;return u}function Yw(t,o){switch(t){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qw(t,o){for(var s=t.suspendedLanes,u=t.pingedLanes,f=t.expirationTimes,g=t.pendingLanes;0<g;){var C=31-Bt(g),D=1<<C,M=f[C];M===-1?((D&s)===0||(D&u)!==0)&&(f[C]=Yw(D,o)):M<=o&&(t.expiredLanes|=D),g&=~D}}function bl(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Xd(){var t=yi;return yi<<=1,(yi&4194240)===0&&(yi=64),t}function Al(t){for(var o=[],s=0;31>s;s++)o.push(t);return o}function mo(t,o,s){t.pendingLanes|=o,o!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,o=31-Bt(o),t[o]=s}function Zw(t,o){var s=t.pendingLanes&~o;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=o,t.mutableReadLanes&=o,t.entangledLanes&=o,o=t.entanglements;var u=t.eventTimes;for(t=t.expirationTimes;0<s;){var f=31-Bt(s),g=1<<f;o[f]=0,u[f]=-1,t[f]=-1,s&=~g}}function Ll(t,o){var s=t.entangledLanes|=o;for(t=t.entanglements;s;){var u=31-Bt(s),f=1<<u;f&o|t[u]&o&&(t[u]|=o),s&=~f}}var ke=0;function qd(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var Yd,Fl,Qd,Zd,Jd,jl=!1,xi=[],Tn=null,In=null,Dn=null,vo=new Map,yo=new Map,On=[],Jw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ef(t,o){switch(t){case"focusin":case"focusout":Tn=null;break;case"dragenter":case"dragleave":In=null;break;case"mouseover":case"mouseout":Dn=null;break;case"pointerover":case"pointerout":vo.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":yo.delete(o.pointerId)}}function wo(t,o,s,u,f,g){return t===null||t.nativeEvent!==g?(t={blockedOn:o,domEventName:s,eventSystemFlags:u,nativeEvent:g,targetContainers:[f]},o!==null&&(o=$o(o),o!==null&&Fl(o)),t):(t.eventSystemFlags|=u,o=t.targetContainers,f!==null&&o.indexOf(f)===-1&&o.push(f),t)}function e0(t,o,s,u,f){switch(o){case"focusin":return Tn=wo(Tn,t,o,s,u,f),!0;case"dragenter":return In=wo(In,t,o,s,u,f),!0;case"mouseover":return Dn=wo(Dn,t,o,s,u,f),!0;case"pointerover":var g=f.pointerId;return vo.set(g,wo(vo.get(g)||null,t,o,s,u,f)),!0;case"gotpointercapture":return g=f.pointerId,yo.set(g,wo(yo.get(g)||null,t,o,s,u,f)),!0}return!1}function tf(t){var o=er(t.target);if(o!==null){var s=Jn(o);if(s!==null){if(o=s.tag,o===13){if(o=Vd(s),o!==null){t.blockedOn=o,Jd(t.priority,function(){Qd(s)});return}}else if(o===3&&s.stateNode.current.memoizedState.isDehydrated){t.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ci(t){if(t.blockedOn!==null)return!1;for(var o=t.targetContainers;0<o.length;){var s=zl(t.domEventName,t.eventSystemFlags,o[0],t.nativeEvent);if(s===null){s=t.nativeEvent;var u=new s.constructor(s.type,s);Il=u,s.target.dispatchEvent(u),Il=null}else return o=$o(s),o!==null&&Fl(o),t.blockedOn=s,!1;o.shift()}return!0}function nf(t,o,s){Ci(t)&&s.delete(o)}function t0(){jl=!1,Tn!==null&&Ci(Tn)&&(Tn=null),In!==null&&Ci(In)&&(In=null),Dn!==null&&Ci(Dn)&&(Dn=null),vo.forEach(nf),yo.forEach(nf)}function So(t,o){t.blockedOn===o&&(t.blockedOn=null,jl||(jl=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,t0)))}function xo(t){function o(f){return So(f,t)}if(0<xi.length){So(xi[0],t);for(var s=1;s<xi.length;s++){var u=xi[s];u.blockedOn===t&&(u.blockedOn=null)}}for(Tn!==null&&So(Tn,t),In!==null&&So(In,t),Dn!==null&&So(Dn,t),vo.forEach(o),yo.forEach(o),s=0;s<On.length;s++)u=On[s],u.blockedOn===t&&(u.blockedOn=null);for(;0<On.length&&(s=On[0],s.blockedOn===null);)tf(s),s.blockedOn===null&&On.shift()}var Er=N.ReactCurrentBatchConfig,Ei=!0;function n0(t,o,s,u){var f=ke,g=Er.transition;Er.transition=null;try{ke=1,Vl(t,o,s,u)}finally{ke=f,Er.transition=g}}function r0(t,o,s,u){var f=ke,g=Er.transition;Er.transition=null;try{ke=4,Vl(t,o,s,u)}finally{ke=f,Er.transition=g}}function Vl(t,o,s,u){if(Ei){var f=zl(t,o,s,u);if(f===null)oa(t,o,u,Ri,s),ef(t,u);else if(e0(f,t,o,s,u))u.stopPropagation();else if(ef(t,u),o&4&&-1<Jw.indexOf(t)){for(;f!==null;){var g=$o(f);if(g!==null&&Yd(g),g=zl(t,o,s,u),g===null&&oa(t,o,u,Ri,s),g===f)break;f=g}f!==null&&u.stopPropagation()}else oa(t,o,u,null,s)}}var Ri=null;function zl(t,o,s,u){if(Ri=null,t=Dl(u),t=er(t),t!==null)if(o=Jn(t),o===null)t=null;else if(s=o.tag,s===13){if(t=Vd(o),t!==null)return t;t=null}else if(s===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;t=null}else o!==t&&(t=null);return Ri=t,null}function rf(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Bw()){case Nl:return 1;case Gd:return 4;case mi:case Ww:return 16;case Kd:return 536870912;default:return 16}default:return 16}}var Mn=null,Hl=null,Pi=null;function of(){if(Pi)return Pi;var t,o=Hl,s=o.length,u,f="value"in Mn?Mn.value:Mn.textContent,g=f.length;for(t=0;t<s&&o[t]===f[t];t++);var C=s-t;for(u=1;u<=C&&o[s-u]===f[g-u];u++);return Pi=f.slice(t,1<u?1-u:void 0)}function _i(t){var o=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&o===13&&(t=13)):t=o,t===10&&(t=13),32<=t||t===13?t:0}function Ti(){return!0}function sf(){return!1}function Pt(t){function o(s,u,f,g,C){this._reactName=s,this._targetInst=f,this.type=u,this.nativeEvent=g,this.target=C,this.currentTarget=null;for(var D in t)t.hasOwnProperty(D)&&(s=t[D],this[D]=s?s(g):g[D]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Ti:sf,this.isPropagationStopped=sf,this}return G(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ti)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ti)},persist:function(){},isPersistent:Ti}),o}var Rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ul=Pt(Rr),Co=G({},Rr,{view:0,detail:0}),o0=Pt(Co),Bl,Wl,Eo,Ii=G({},Co,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kl,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Eo&&(Eo&&t.type==="mousemove"?(Bl=t.screenX-Eo.screenX,Wl=t.screenY-Eo.screenY):Wl=Bl=0,Eo=t),Bl)},movementY:function(t){return"movementY"in t?t.movementY:Wl}}),lf=Pt(Ii),i0=G({},Ii,{dataTransfer:0}),s0=Pt(i0),l0=G({},Co,{relatedTarget:0}),Gl=Pt(l0),a0=G({},Rr,{animationName:0,elapsedTime:0,pseudoElement:0}),u0=Pt(a0),c0=G({},Rr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),d0=Pt(c0),f0=G({},Rr,{data:0}),af=Pt(f0),p0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},g0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},h0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function m0(t){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(t):(t=h0[t])?!!o[t]:!1}function Kl(){return m0}var v0=G({},Co,{key:function(t){if(t.key){var o=p0[t.key]||t.key;if(o!=="Unidentified")return o}return t.type==="keypress"?(t=_i(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?g0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kl,charCode:function(t){return t.type==="keypress"?_i(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?_i(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),y0=Pt(v0),w0=G({},Ii,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uf=Pt(w0),S0=G({},Co,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kl}),x0=Pt(S0),C0=G({},Rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),E0=Pt(C0),R0=G({},Ii,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),P0=Pt(R0),_0=[9,13,27,32],Xl=d&&"CompositionEvent"in window,Ro=null;d&&"documentMode"in document&&(Ro=document.documentMode);var T0=d&&"TextEvent"in window&&!Ro,cf=d&&(!Xl||Ro&&8<Ro&&11>=Ro),df=" ",ff=!1;function pf(t,o){switch(t){case"keyup":return _0.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Pr=!1;function I0(t,o){switch(t){case"compositionend":return gf(o);case"keypress":return o.which!==32?null:(ff=!0,df);case"textInput":return t=o.data,t===df&&ff?null:t;default:return null}}function D0(t,o){if(Pr)return t==="compositionend"||!Xl&&pf(t,o)?(t=of(),Pi=Hl=Mn=null,Pr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return cf&&o.locale!=="ko"?null:o.data;default:return null}}var O0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function hf(t){var o=t&&t.nodeName&&t.nodeName.toLowerCase();return o==="input"?!!O0[t.type]:o==="textarea"}function mf(t,o,s,u){bd(u),o=$i(o,"onChange"),0<o.length&&(s=new Ul("onChange","change",null,s,u),t.push({event:s,listeners:o}))}var Po=null,_o=null;function M0(t){Nf(t,0)}function Di(t){var o=Or(t);if(Pe(o))return t}function k0(t,o){if(t==="change")return o}var vf=!1;if(d){var ql;if(d){var Yl="oninput"in document;if(!Yl){var yf=document.createElement("div");yf.setAttribute("oninput","return;"),Yl=typeof yf.oninput=="function"}ql=Yl}else ql=!1;vf=ql&&(!document.documentMode||9<document.documentMode)}function wf(){Po&&(Po.detachEvent("onpropertychange",Sf),_o=Po=null)}function Sf(t){if(t.propertyName==="value"&&Di(_o)){var o=[];mf(o,_o,t,Dl(t)),jd(M0,o)}}function $0(t,o,s){t==="focusin"?(wf(),Po=o,_o=s,Po.attachEvent("onpropertychange",Sf)):t==="focusout"&&wf()}function N0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Di(_o)}function b0(t,o){if(t==="click")return Di(o)}function A0(t,o){if(t==="input"||t==="change")return Di(o)}function L0(t,o){return t===o&&(t!==0||1/t===1/o)||t!==t&&o!==o}var Wt=typeof Object.is=="function"?Object.is:L0;function To(t,o){if(Wt(t,o))return!0;if(typeof t!="object"||t===null||typeof o!="object"||o===null)return!1;var s=Object.keys(t),u=Object.keys(o);if(s.length!==u.length)return!1;for(u=0;u<s.length;u++){var f=s[u];if(!h.call(o,f)||!Wt(t[f],o[f]))return!1}return!0}function xf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Cf(t,o){var s=xf(t);t=0;for(var u;s;){if(s.nodeType===3){if(u=t+s.textContent.length,t<=o&&u>=o)return{node:s,offset:o-t};t=u}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=xf(s)}}function Ef(t,o){return t&&o?t===o?!0:t&&t.nodeType===3?!1:o&&o.nodeType===3?Ef(t,o.parentNode):"contains"in t?t.contains(o):t.compareDocumentPosition?!!(t.compareDocumentPosition(o)&16):!1:!1}function Rf(){for(var t=window,o=we();o instanceof t.HTMLIFrameElement;){try{var s=typeof o.contentWindow.location.href=="string"}catch{s=!1}if(s)t=o.contentWindow;else break;o=we(t.document)}return o}function Ql(t){var o=t&&t.nodeName&&t.nodeName.toLowerCase();return o&&(o==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||o==="textarea"||t.contentEditable==="true")}function F0(t){var o=Rf(),s=t.focusedElem,u=t.selectionRange;if(o!==s&&s&&s.ownerDocument&&Ef(s.ownerDocument.documentElement,s)){if(u!==null&&Ql(s)){if(o=u.start,t=u.end,t===void 0&&(t=o),"selectionStart"in s)s.selectionStart=o,s.selectionEnd=Math.min(t,s.value.length);else if(t=(o=s.ownerDocument||document)&&o.defaultView||window,t.getSelection){t=t.getSelection();var f=s.textContent.length,g=Math.min(u.start,f);u=u.end===void 0?g:Math.min(u.end,f),!t.extend&&g>u&&(f=u,u=g,g=f),f=Cf(s,g);var C=Cf(s,u);f&&C&&(t.rangeCount!==1||t.anchorNode!==f.node||t.anchorOffset!==f.offset||t.focusNode!==C.node||t.focusOffset!==C.offset)&&(o=o.createRange(),o.setStart(f.node,f.offset),t.removeAllRanges(),g>u?(t.addRange(o),t.extend(C.node,C.offset)):(o.setEnd(C.node,C.offset),t.addRange(o)))}}for(o=[],t=s;t=t.parentNode;)t.nodeType===1&&o.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<o.length;s++)t=o[s],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var j0=d&&"documentMode"in document&&11>=document.documentMode,_r=null,Zl=null,Io=null,Jl=!1;function Pf(t,o,s){var u=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Jl||_r==null||_r!==we(u)||(u=_r,"selectionStart"in u&&Ql(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Io&&To(Io,u)||(Io=u,u=$i(Zl,"onSelect"),0<u.length&&(o=new Ul("onSelect","select",null,o,s),t.push({event:o,listeners:u}),o.target=_r)))}function Oi(t,o){var s={};return s[t.toLowerCase()]=o.toLowerCase(),s["Webkit"+t]="webkit"+o,s["Moz"+t]="moz"+o,s}var Tr={animationend:Oi("Animation","AnimationEnd"),animationiteration:Oi("Animation","AnimationIteration"),animationstart:Oi("Animation","AnimationStart"),transitionend:Oi("Transition","TransitionEnd")},ea={},_f={};d&&(_f=document.createElement("div").style,"AnimationEvent"in window||(delete Tr.animationend.animation,delete Tr.animationiteration.animation,delete Tr.animationstart.animation),"TransitionEvent"in window||delete Tr.transitionend.transition);function Mi(t){if(ea[t])return ea[t];if(!Tr[t])return t;var o=Tr[t],s;for(s in o)if(o.hasOwnProperty(s)&&s in _f)return ea[t]=o[s];return t}var Tf=Mi("animationend"),If=Mi("animationiteration"),Df=Mi("animationstart"),Of=Mi("transitionend"),Mf=new Map,kf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function kn(t,o){Mf.set(t,o),l(o,[t])}for(var ta=0;ta<kf.length;ta++){var na=kf[ta],V0=na.toLowerCase(),z0=na[0].toUpperCase()+na.slice(1);kn(V0,"on"+z0)}kn(Tf,"onAnimationEnd"),kn(If,"onAnimationIteration"),kn(Df,"onAnimationStart"),kn("dblclick","onDoubleClick"),kn("focusin","onFocus"),kn("focusout","onBlur"),kn(Of,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Do="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),H0=new Set("cancel close invalid load scroll toggle".split(" ").concat(Do));function $f(t,o,s){var u=t.type||"unknown-event";t.currentTarget=s,Vw(u,o,void 0,t),t.currentTarget=null}function Nf(t,o){o=(o&4)!==0;for(var s=0;s<t.length;s++){var u=t[s],f=u.event;u=u.listeners;e:{var g=void 0;if(o)for(var C=u.length-1;0<=C;C--){var D=u[C],M=D.instance,z=D.currentTarget;if(D=D.listener,M!==g&&f.isPropagationStopped())break e;$f(f,D,z),g=M}else for(C=0;C<u.length;C++){if(D=u[C],M=D.instance,z=D.currentTarget,D=D.listener,M!==g&&f.isPropagationStopped())break e;$f(f,D,z),g=M}}}if(hi)throw t=$l,hi=!1,$l=null,t}function Ae(t,o){var s=o[ca];s===void 0&&(s=o[ca]=new Set);var u=t+"__bubble";s.has(u)||(bf(o,t,2,!1),s.add(u))}function ra(t,o,s){var u=0;o&&(u|=4),bf(s,t,u,o)}var ki="_reactListening"+Math.random().toString(36).slice(2);function Oo(t){if(!t[ki]){t[ki]=!0,i.forEach(function(s){s!=="selectionchange"&&(H0.has(s)||ra(s,!1,t),ra(s,!0,t))});var o=t.nodeType===9?t:t.ownerDocument;o===null||o[ki]||(o[ki]=!0,ra("selectionchange",!1,o))}}function bf(t,o,s,u){switch(rf(o)){case 1:var f=n0;break;case 4:f=r0;break;default:f=Vl}s=f.bind(null,o,s,t),f=void 0,!kl||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(f=!0),u?f!==void 0?t.addEventListener(o,s,{capture:!0,passive:f}):t.addEventListener(o,s,!0):f!==void 0?t.addEventListener(o,s,{passive:f}):t.addEventListener(o,s,!1)}function oa(t,o,s,u,f){var g=u;if((o&1)===0&&(o&2)===0&&u!==null)e:for(;;){if(u===null)return;var C=u.tag;if(C===3||C===4){var D=u.stateNode.containerInfo;if(D===f||D.nodeType===8&&D.parentNode===f)break;if(C===4)for(C=u.return;C!==null;){var M=C.tag;if((M===3||M===4)&&(M=C.stateNode.containerInfo,M===f||M.nodeType===8&&M.parentNode===f))return;C=C.return}for(;D!==null;){if(C=er(D),C===null)return;if(M=C.tag,M===5||M===6){u=g=C;continue e}D=D.parentNode}}u=u.return}jd(function(){var z=g,ne=Dl(s),ie=[];e:{var J=Mf.get(t);if(J!==void 0){var fe=Ul,me=t;switch(t){case"keypress":if(_i(s)===0)break e;case"keydown":case"keyup":fe=y0;break;case"focusin":me="focus",fe=Gl;break;case"focusout":me="blur",fe=Gl;break;case"beforeblur":case"afterblur":fe=Gl;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":fe=lf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=s0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=x0;break;case Tf:case If:case Df:fe=u0;break;case Of:fe=E0;break;case"scroll":fe=o0;break;case"wheel":fe=P0;break;case"copy":case"cut":case"paste":fe=d0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=uf}var ve=(o&4)!==0,Ge=!ve&&t==="scroll",j=ve?J!==null?J+"Capture":null:J;ve=[];for(var k=z,V;k!==null;){V=k;var le=V.stateNode;if(V.tag===5&&le!==null&&(V=le,j!==null&&(le=fo(k,j),le!=null&&ve.push(Mo(k,le,V)))),Ge)break;k=k.return}0<ve.length&&(J=new fe(J,me,null,s,ne),ie.push({event:J,listeners:ve}))}}if((o&7)===0){e:{if(J=t==="mouseover"||t==="pointerover",fe=t==="mouseout"||t==="pointerout",J&&s!==Il&&(me=s.relatedTarget||s.fromElement)&&(er(me)||me[dn]))break e;if((fe||J)&&(J=ne.window===ne?ne:(J=ne.ownerDocument)?J.defaultView||J.parentWindow:window,fe?(me=s.relatedTarget||s.toElement,fe=z,me=me?er(me):null,me!==null&&(Ge=Jn(me),me!==Ge||me.tag!==5&&me.tag!==6)&&(me=null)):(fe=null,me=z),fe!==me)){if(ve=lf,le="onMouseLeave",j="onMouseEnter",k="mouse",(t==="pointerout"||t==="pointerover")&&(ve=uf,le="onPointerLeave",j="onPointerEnter",k="pointer"),Ge=fe==null?J:Or(fe),V=me==null?J:Or(me),J=new ve(le,k+"leave",fe,s,ne),J.target=Ge,J.relatedTarget=V,le=null,er(ne)===z&&(ve=new ve(j,k+"enter",me,s,ne),ve.target=V,ve.relatedTarget=Ge,le=ve),Ge=le,fe&&me)t:{for(ve=fe,j=me,k=0,V=ve;V;V=Ir(V))k++;for(V=0,le=j;le;le=Ir(le))V++;for(;0<k-V;)ve=Ir(ve),k--;for(;0<V-k;)j=Ir(j),V--;for(;k--;){if(ve===j||j!==null&&ve===j.alternate)break t;ve=Ir(ve),j=Ir(j)}ve=null}else ve=null;fe!==null&&Af(ie,J,fe,ve,!1),me!==null&&Ge!==null&&Af(ie,Ge,me,ve,!0)}}e:{if(J=z?Or(z):window,fe=J.nodeName&&J.nodeName.toLowerCase(),fe==="select"||fe==="input"&&J.type==="file")var ye=k0;else if(hf(J))if(vf)ye=A0;else{ye=N0;var xe=$0}else(fe=J.nodeName)&&fe.toLowerCase()==="input"&&(J.type==="checkbox"||J.type==="radio")&&(ye=b0);if(ye&&(ye=ye(t,z))){mf(ie,ye,s,ne);break e}xe&&xe(t,J,z),t==="focusout"&&(xe=J._wrapperState)&&xe.controlled&&J.type==="number"&&Fe(J,"number",J.value)}switch(xe=z?Or(z):window,t){case"focusin":(hf(xe)||xe.contentEditable==="true")&&(_r=xe,Zl=z,Io=null);break;case"focusout":Io=Zl=_r=null;break;case"mousedown":Jl=!0;break;case"contextmenu":case"mouseup":case"dragend":Jl=!1,Pf(ie,s,ne);break;case"selectionchange":if(j0)break;case"keydown":case"keyup":Pf(ie,s,ne)}var Ce;if(Xl)e:{switch(t){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else Pr?pf(t,s)&&(_e="onCompositionEnd"):t==="keydown"&&s.keyCode===229&&(_e="onCompositionStart");_e&&(cf&&s.locale!=="ko"&&(Pr||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&Pr&&(Ce=of()):(Mn=ne,Hl="value"in Mn?Mn.value:Mn.textContent,Pr=!0)),xe=$i(z,_e),0<xe.length&&(_e=new af(_e,t,null,s,ne),ie.push({event:_e,listeners:xe}),Ce?_e.data=Ce:(Ce=gf(s),Ce!==null&&(_e.data=Ce)))),(Ce=T0?I0(t,s):D0(t,s))&&(z=$i(z,"onBeforeInput"),0<z.length&&(ne=new af("onBeforeInput","beforeinput",null,s,ne),ie.push({event:ne,listeners:z}),ne.data=Ce))}Nf(ie,o)})}function Mo(t,o,s){return{instance:t,listener:o,currentTarget:s}}function $i(t,o){for(var s=o+"Capture",u=[];t!==null;){var f=t,g=f.stateNode;f.tag===5&&g!==null&&(f=g,g=fo(t,s),g!=null&&u.unshift(Mo(t,g,f)),g=fo(t,o),g!=null&&u.push(Mo(t,g,f))),t=t.return}return u}function Ir(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Af(t,o,s,u,f){for(var g=o._reactName,C=[];s!==null&&s!==u;){var D=s,M=D.alternate,z=D.stateNode;if(M!==null&&M===u)break;D.tag===5&&z!==null&&(D=z,f?(M=fo(s,g),M!=null&&C.unshift(Mo(s,M,D))):f||(M=fo(s,g),M!=null&&C.push(Mo(s,M,D)))),s=s.return}C.length!==0&&t.push({event:o,listeners:C})}var U0=/\r\n?/g,B0=/\u0000|\uFFFD/g;function Lf(t){return(typeof t=="string"?t:""+t).replace(U0,`
`).replace(B0,"")}function Ni(t,o,s){if(o=Lf(o),Lf(t)!==o&&s)throw Error(r(425))}function bi(){}var ia=null,sa=null;function la(t,o){return t==="textarea"||t==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var aa=typeof setTimeout=="function"?setTimeout:void 0,W0=typeof clearTimeout=="function"?clearTimeout:void 0,Ff=typeof Promise=="function"?Promise:void 0,G0=typeof queueMicrotask=="function"?queueMicrotask:typeof Ff<"u"?function(t){return Ff.resolve(null).then(t).catch(K0)}:aa;function K0(t){setTimeout(function(){throw t})}function ua(t,o){var s=o,u=0;do{var f=s.nextSibling;if(t.removeChild(s),f&&f.nodeType===8)if(s=f.data,s==="/$"){if(u===0){t.removeChild(f),xo(o);return}u--}else s!=="$"&&s!=="$?"&&s!=="$!"||u++;s=f}while(s);xo(o)}function $n(t){for(;t!=null;t=t.nextSibling){var o=t.nodeType;if(o===1||o===3)break;if(o===8){if(o=t.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return t}function jf(t){t=t.previousSibling;for(var o=0;t;){if(t.nodeType===8){var s=t.data;if(s==="$"||s==="$!"||s==="$?"){if(o===0)return t;o--}else s==="/$"&&o++}t=t.previousSibling}return null}var Dr=Math.random().toString(36).slice(2),nn="__reactFiber$"+Dr,ko="__reactProps$"+Dr,dn="__reactContainer$"+Dr,ca="__reactEvents$"+Dr,X0="__reactListeners$"+Dr,q0="__reactHandles$"+Dr;function er(t){var o=t[nn];if(o)return o;for(var s=t.parentNode;s;){if(o=s[dn]||s[nn]){if(s=o.alternate,o.child!==null||s!==null&&s.child!==null)for(t=jf(t);t!==null;){if(s=t[nn])return s;t=jf(t)}return o}t=s,s=t.parentNode}return null}function $o(t){return t=t[nn]||t[dn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Or(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(r(33))}function Ai(t){return t[ko]||null}var da=[],Mr=-1;function Nn(t){return{current:t}}function Le(t){0>Mr||(t.current=da[Mr],da[Mr]=null,Mr--)}function be(t,o){Mr++,da[Mr]=t.current,t.current=o}var bn={},ot=Nn(bn),vt=Nn(!1),tr=bn;function kr(t,o){var s=t.type.contextTypes;if(!s)return bn;var u=t.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===o)return u.__reactInternalMemoizedMaskedChildContext;var f={},g;for(g in s)f[g]=o[g];return u&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=f),f}function yt(t){return t=t.childContextTypes,t!=null}function Li(){Le(vt),Le(ot)}function Vf(t,o,s){if(ot.current!==bn)throw Error(r(168));be(ot,o),be(vt,s)}function zf(t,o,s){var u=t.stateNode;if(o=o.childContextTypes,typeof u.getChildContext!="function")return s;u=u.getChildContext();for(var f in u)if(!(f in o))throw Error(r(108,K(t)||"Unknown",f));return G({},s,u)}function Fi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||bn,tr=ot.current,be(ot,t),be(vt,vt.current),!0}function Hf(t,o,s){var u=t.stateNode;if(!u)throw Error(r(169));s?(t=zf(t,o,tr),u.__reactInternalMemoizedMergedChildContext=t,Le(vt),Le(ot),be(ot,t)):Le(vt),be(vt,s)}var fn=null,ji=!1,fa=!1;function Uf(t){fn===null?fn=[t]:fn.push(t)}function Y0(t){ji=!0,Uf(t)}function An(){if(!fa&&fn!==null){fa=!0;var t=0,o=ke;try{var s=fn;for(ke=1;t<s.length;t++){var u=s[t];do u=u(!0);while(u!==null)}fn=null,ji=!1}catch(f){throw fn!==null&&(fn=fn.slice(t+1)),Bd(Nl,An),f}finally{ke=o,fa=!1}}return null}var $r=[],Nr=0,Vi=null,zi=0,Nt=[],bt=0,nr=null,pn=1,gn="";function rr(t,o){$r[Nr++]=zi,$r[Nr++]=Vi,Vi=t,zi=o}function Bf(t,o,s){Nt[bt++]=pn,Nt[bt++]=gn,Nt[bt++]=nr,nr=t;var u=pn;t=gn;var f=32-Bt(u)-1;u&=~(1<<f),s+=1;var g=32-Bt(o)+f;if(30<g){var C=f-f%5;g=(u&(1<<C)-1).toString(32),u>>=C,f-=C,pn=1<<32-Bt(o)+f|s<<f|u,gn=g+t}else pn=1<<g|s<<f|u,gn=t}function pa(t){t.return!==null&&(rr(t,1),Bf(t,1,0))}function ga(t){for(;t===Vi;)Vi=$r[--Nr],$r[Nr]=null,zi=$r[--Nr],$r[Nr]=null;for(;t===nr;)nr=Nt[--bt],Nt[bt]=null,gn=Nt[--bt],Nt[bt]=null,pn=Nt[--bt],Nt[bt]=null}var _t=null,Tt=null,je=!1,Gt=null;function Wf(t,o){var s=jt(5,null,null,0);s.elementType="DELETED",s.stateNode=o,s.return=t,o=t.deletions,o===null?(t.deletions=[s],t.flags|=16):o.push(s)}function Gf(t,o){switch(t.tag){case 5:var s=t.type;return o=o.nodeType!==1||s.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(t.stateNode=o,_t=t,Tt=$n(o.firstChild),!0):!1;case 6:return o=t.pendingProps===""||o.nodeType!==3?null:o,o!==null?(t.stateNode=o,_t=t,Tt=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(s=nr!==null?{id:pn,overflow:gn}:null,t.memoizedState={dehydrated:o,treeContext:s,retryLane:1073741824},s=jt(18,null,null,0),s.stateNode=o,s.return=t,t.child=s,_t=t,Tt=null,!0):!1;default:return!1}}function ha(t){return(t.mode&1)!==0&&(t.flags&128)===0}function ma(t){if(je){var o=Tt;if(o){var s=o;if(!Gf(t,o)){if(ha(t))throw Error(r(418));o=$n(s.nextSibling);var u=_t;o&&Gf(t,o)?Wf(u,s):(t.flags=t.flags&-4097|2,je=!1,_t=t)}}else{if(ha(t))throw Error(r(418));t.flags=t.flags&-4097|2,je=!1,_t=t}}}function Kf(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;_t=t}function Hi(t){if(t!==_t)return!1;if(!je)return Kf(t),je=!0,!1;var o;if((o=t.tag!==3)&&!(o=t.tag!==5)&&(o=t.type,o=o!=="head"&&o!=="body"&&!la(t.type,t.memoizedProps)),o&&(o=Tt)){if(ha(t))throw Xf(),Error(r(418));for(;o;)Wf(t,o),o=$n(o.nextSibling)}if(Kf(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));e:{for(t=t.nextSibling,o=0;t;){if(t.nodeType===8){var s=t.data;if(s==="/$"){if(o===0){Tt=$n(t.nextSibling);break e}o--}else s!=="$"&&s!=="$!"&&s!=="$?"||o++}t=t.nextSibling}Tt=null}}else Tt=_t?$n(t.stateNode.nextSibling):null;return!0}function Xf(){for(var t=Tt;t;)t=$n(t.nextSibling)}function br(){Tt=_t=null,je=!1}function va(t){Gt===null?Gt=[t]:Gt.push(t)}var Q0=N.ReactCurrentBatchConfig;function No(t,o,s){if(t=s.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(r(309));var u=s.stateNode}if(!u)throw Error(r(147,t));var f=u,g=""+t;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===g?o.ref:(o=function(C){var D=f.refs;C===null?delete D[g]:D[g]=C},o._stringRef=g,o)}if(typeof t!="string")throw Error(r(284));if(!s._owner)throw Error(r(290,t))}return t}function Ui(t,o){throw t=Object.prototype.toString.call(o),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":t))}function qf(t){var o=t._init;return o(t._payload)}function Yf(t){function o(j,k){if(t){var V=j.deletions;V===null?(j.deletions=[k],j.flags|=16):V.push(k)}}function s(j,k){if(!t)return null;for(;k!==null;)o(j,k),k=k.sibling;return null}function u(j,k){for(j=new Map;k!==null;)k.key!==null?j.set(k.key,k):j.set(k.index,k),k=k.sibling;return j}function f(j,k){return j=Bn(j,k),j.index=0,j.sibling=null,j}function g(j,k,V){return j.index=V,t?(V=j.alternate,V!==null?(V=V.index,V<k?(j.flags|=2,k):V):(j.flags|=2,k)):(j.flags|=1048576,k)}function C(j){return t&&j.alternate===null&&(j.flags|=2),j}function D(j,k,V,le){return k===null||k.tag!==6?(k=au(V,j.mode,le),k.return=j,k):(k=f(k,V),k.return=j,k)}function M(j,k,V,le){var ye=V.type;return ye===b?ne(j,k,V.props.children,le,V.key):k!==null&&(k.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===B&&qf(ye)===k.type)?(le=f(k,V.props),le.ref=No(j,k,V),le.return=j,le):(le=ps(V.type,V.key,V.props,null,j.mode,le),le.ref=No(j,k,V),le.return=j,le)}function z(j,k,V,le){return k===null||k.tag!==4||k.stateNode.containerInfo!==V.containerInfo||k.stateNode.implementation!==V.implementation?(k=uu(V,j.mode,le),k.return=j,k):(k=f(k,V.children||[]),k.return=j,k)}function ne(j,k,V,le,ye){return k===null||k.tag!==7?(k=dr(V,j.mode,le,ye),k.return=j,k):(k=f(k,V),k.return=j,k)}function ie(j,k,V){if(typeof k=="string"&&k!==""||typeof k=="number")return k=au(""+k,j.mode,V),k.return=j,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case L:return V=ps(k.type,k.key,k.props,null,j.mode,V),V.ref=No(j,null,k),V.return=j,V;case U:return k=uu(k,j.mode,V),k.return=j,k;case B:var le=k._init;return ie(j,le(k._payload),V)}if(Ne(k)||F(k))return k=dr(k,j.mode,V,null),k.return=j,k;Ui(j,k)}return null}function J(j,k,V,le){var ye=k!==null?k.key:null;if(typeof V=="string"&&V!==""||typeof V=="number")return ye!==null?null:D(j,k,""+V,le);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case L:return V.key===ye?M(j,k,V,le):null;case U:return V.key===ye?z(j,k,V,le):null;case B:return ye=V._init,J(j,k,ye(V._payload),le)}if(Ne(V)||F(V))return ye!==null?null:ne(j,k,V,le,null);Ui(j,V)}return null}function fe(j,k,V,le,ye){if(typeof le=="string"&&le!==""||typeof le=="number")return j=j.get(V)||null,D(k,j,""+le,ye);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case L:return j=j.get(le.key===null?V:le.key)||null,M(k,j,le,ye);case U:return j=j.get(le.key===null?V:le.key)||null,z(k,j,le,ye);case B:var xe=le._init;return fe(j,k,V,xe(le._payload),ye)}if(Ne(le)||F(le))return j=j.get(V)||null,ne(k,j,le,ye,null);Ui(k,le)}return null}function me(j,k,V,le){for(var ye=null,xe=null,Ce=k,_e=k=0,et=null;Ce!==null&&_e<V.length;_e++){Ce.index>_e?(et=Ce,Ce=null):et=Ce.sibling;var Me=J(j,Ce,V[_e],le);if(Me===null){Ce===null&&(Ce=et);break}t&&Ce&&Me.alternate===null&&o(j,Ce),k=g(Me,k,_e),xe===null?ye=Me:xe.sibling=Me,xe=Me,Ce=et}if(_e===V.length)return s(j,Ce),je&&rr(j,_e),ye;if(Ce===null){for(;_e<V.length;_e++)Ce=ie(j,V[_e],le),Ce!==null&&(k=g(Ce,k,_e),xe===null?ye=Ce:xe.sibling=Ce,xe=Ce);return je&&rr(j,_e),ye}for(Ce=u(j,Ce);_e<V.length;_e++)et=fe(Ce,j,_e,V[_e],le),et!==null&&(t&&et.alternate!==null&&Ce.delete(et.key===null?_e:et.key),k=g(et,k,_e),xe===null?ye=et:xe.sibling=et,xe=et);return t&&Ce.forEach(function(Wn){return o(j,Wn)}),je&&rr(j,_e),ye}function ve(j,k,V,le){var ye=F(V);if(typeof ye!="function")throw Error(r(150));if(V=ye.call(V),V==null)throw Error(r(151));for(var xe=ye=null,Ce=k,_e=k=0,et=null,Me=V.next();Ce!==null&&!Me.done;_e++,Me=V.next()){Ce.index>_e?(et=Ce,Ce=null):et=Ce.sibling;var Wn=J(j,Ce,Me.value,le);if(Wn===null){Ce===null&&(Ce=et);break}t&&Ce&&Wn.alternate===null&&o(j,Ce),k=g(Wn,k,_e),xe===null?ye=Wn:xe.sibling=Wn,xe=Wn,Ce=et}if(Me.done)return s(j,Ce),je&&rr(j,_e),ye;if(Ce===null){for(;!Me.done;_e++,Me=V.next())Me=ie(j,Me.value,le),Me!==null&&(k=g(Me,k,_e),xe===null?ye=Me:xe.sibling=Me,xe=Me);return je&&rr(j,_e),ye}for(Ce=u(j,Ce);!Me.done;_e++,Me=V.next())Me=fe(Ce,j,_e,Me.value,le),Me!==null&&(t&&Me.alternate!==null&&Ce.delete(Me.key===null?_e:Me.key),k=g(Me,k,_e),xe===null?ye=Me:xe.sibling=Me,xe=Me);return t&&Ce.forEach(function(OS){return o(j,OS)}),je&&rr(j,_e),ye}function Ge(j,k,V,le){if(typeof V=="object"&&V!==null&&V.type===b&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case L:e:{for(var ye=V.key,xe=k;xe!==null;){if(xe.key===ye){if(ye=V.type,ye===b){if(xe.tag===7){s(j,xe.sibling),k=f(xe,V.props.children),k.return=j,j=k;break e}}else if(xe.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===B&&qf(ye)===xe.type){s(j,xe.sibling),k=f(xe,V.props),k.ref=No(j,xe,V),k.return=j,j=k;break e}s(j,xe);break}else o(j,xe);xe=xe.sibling}V.type===b?(k=dr(V.props.children,j.mode,le,V.key),k.return=j,j=k):(le=ps(V.type,V.key,V.props,null,j.mode,le),le.ref=No(j,k,V),le.return=j,j=le)}return C(j);case U:e:{for(xe=V.key;k!==null;){if(k.key===xe)if(k.tag===4&&k.stateNode.containerInfo===V.containerInfo&&k.stateNode.implementation===V.implementation){s(j,k.sibling),k=f(k,V.children||[]),k.return=j,j=k;break e}else{s(j,k);break}else o(j,k);k=k.sibling}k=uu(V,j.mode,le),k.return=j,j=k}return C(j);case B:return xe=V._init,Ge(j,k,xe(V._payload),le)}if(Ne(V))return me(j,k,V,le);if(F(V))return ve(j,k,V,le);Ui(j,V)}return typeof V=="string"&&V!==""||typeof V=="number"?(V=""+V,k!==null&&k.tag===6?(s(j,k.sibling),k=f(k,V),k.return=j,j=k):(s(j,k),k=au(V,j.mode,le),k.return=j,j=k),C(j)):s(j,k)}return Ge}var Ar=Yf(!0),Qf=Yf(!1),Bi=Nn(null),Wi=null,Lr=null,ya=null;function wa(){ya=Lr=Wi=null}function Sa(t){var o=Bi.current;Le(Bi),t._currentValue=o}function xa(t,o,s){for(;t!==null;){var u=t.alternate;if((t.childLanes&o)!==o?(t.childLanes|=o,u!==null&&(u.childLanes|=o)):u!==null&&(u.childLanes&o)!==o&&(u.childLanes|=o),t===s)break;t=t.return}}function Fr(t,o){Wi=t,ya=Lr=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&o)!==0&&(wt=!0),t.firstContext=null)}function At(t){var o=t._currentValue;if(ya!==t)if(t={context:t,memoizedValue:o,next:null},Lr===null){if(Wi===null)throw Error(r(308));Lr=t,Wi.dependencies={lanes:0,firstContext:t}}else Lr=Lr.next=t;return o}var or=null;function Ca(t){or===null?or=[t]:or.push(t)}function Zf(t,o,s,u){var f=o.interleaved;return f===null?(s.next=s,Ca(o)):(s.next=f.next,f.next=s),o.interleaved=s,hn(t,u)}function hn(t,o){t.lanes|=o;var s=t.alternate;for(s!==null&&(s.lanes|=o),s=t,t=t.return;t!==null;)t.childLanes|=o,s=t.alternate,s!==null&&(s.childLanes|=o),s=t,t=t.return;return s.tag===3?s.stateNode:null}var Ln=!1;function Ea(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jf(t,o){t=t.updateQueue,o.updateQueue===t&&(o.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function mn(t,o){return{eventTime:t,lane:o,tag:0,payload:null,callback:null,next:null}}function Fn(t,o,s){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,(De&2)!==0){var f=u.pending;return f===null?o.next=o:(o.next=f.next,f.next=o),u.pending=o,hn(t,s)}return f=u.interleaved,f===null?(o.next=o,Ca(u)):(o.next=f.next,f.next=o),u.interleaved=o,hn(t,s)}function Gi(t,o,s){if(o=o.updateQueue,o!==null&&(o=o.shared,(s&4194240)!==0)){var u=o.lanes;u&=t.pendingLanes,s|=u,o.lanes=s,Ll(t,s)}}function ep(t,o){var s=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,s===u)){var f=null,g=null;if(s=s.firstBaseUpdate,s!==null){do{var C={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};g===null?f=g=C:g=g.next=C,s=s.next}while(s!==null);g===null?f=g=o:g=g.next=o}else f=g=o;s={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:g,shared:u.shared,effects:u.effects},t.updateQueue=s;return}t=s.lastBaseUpdate,t===null?s.firstBaseUpdate=o:t.next=o,s.lastBaseUpdate=o}function Ki(t,o,s,u){var f=t.updateQueue;Ln=!1;var g=f.firstBaseUpdate,C=f.lastBaseUpdate,D=f.shared.pending;if(D!==null){f.shared.pending=null;var M=D,z=M.next;M.next=null,C===null?g=z:C.next=z,C=M;var ne=t.alternate;ne!==null&&(ne=ne.updateQueue,D=ne.lastBaseUpdate,D!==C&&(D===null?ne.firstBaseUpdate=z:D.next=z,ne.lastBaseUpdate=M))}if(g!==null){var ie=f.baseState;C=0,ne=z=M=null,D=g;do{var J=D.lane,fe=D.eventTime;if((u&J)===J){ne!==null&&(ne=ne.next={eventTime:fe,lane:0,tag:D.tag,payload:D.payload,callback:D.callback,next:null});e:{var me=t,ve=D;switch(J=o,fe=s,ve.tag){case 1:if(me=ve.payload,typeof me=="function"){ie=me.call(fe,ie,J);break e}ie=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=ve.payload,J=typeof me=="function"?me.call(fe,ie,J):me,J==null)break e;ie=G({},ie,J);break e;case 2:Ln=!0}}D.callback!==null&&D.lane!==0&&(t.flags|=64,J=f.effects,J===null?f.effects=[D]:J.push(D))}else fe={eventTime:fe,lane:J,tag:D.tag,payload:D.payload,callback:D.callback,next:null},ne===null?(z=ne=fe,M=ie):ne=ne.next=fe,C|=J;if(D=D.next,D===null){if(D=f.shared.pending,D===null)break;J=D,D=J.next,J.next=null,f.lastBaseUpdate=J,f.shared.pending=null}}while(!0);if(ne===null&&(M=ie),f.baseState=M,f.firstBaseUpdate=z,f.lastBaseUpdate=ne,o=f.shared.interleaved,o!==null){f=o;do C|=f.lane,f=f.next;while(f!==o)}else g===null&&(f.shared.lanes=0);lr|=C,t.lanes=C,t.memoizedState=ie}}function tp(t,o,s){if(t=o.effects,o.effects=null,t!==null)for(o=0;o<t.length;o++){var u=t[o],f=u.callback;if(f!==null){if(u.callback=null,u=s,typeof f!="function")throw Error(r(191,f));f.call(u)}}}var bo={},rn=Nn(bo),Ao=Nn(bo),Lo=Nn(bo);function ir(t){if(t===bo)throw Error(r(174));return t}function Ra(t,o){switch(be(Lo,o),be(Ao,t),be(rn,bo),t=o.nodeType,t){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Pl(null,"");break;default:t=t===8?o.parentNode:o,o=t.namespaceURI||null,t=t.tagName,o=Pl(o,t)}Le(rn),be(rn,o)}function jr(){Le(rn),Le(Ao),Le(Lo)}function np(t){ir(Lo.current);var o=ir(rn.current),s=Pl(o,t.type);o!==s&&(be(Ao,t),be(rn,s))}function Pa(t){Ao.current===t&&(Le(rn),Le(Ao))}var ze=Nn(0);function Xi(t){for(var o=t;o!==null;){if(o.tag===13){var s=o.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var _a=[];function Ta(){for(var t=0;t<_a.length;t++)_a[t]._workInProgressVersionPrimary=null;_a.length=0}var qi=N.ReactCurrentDispatcher,Ia=N.ReactCurrentBatchConfig,sr=0,He=null,Xe=null,Ze=null,Yi=!1,Fo=!1,jo=0,Z0=0;function it(){throw Error(r(321))}function Da(t,o){if(o===null)return!1;for(var s=0;s<o.length&&s<t.length;s++)if(!Wt(t[s],o[s]))return!1;return!0}function Oa(t,o,s,u,f,g){if(sr=g,He=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,qi.current=t===null||t.memoizedState===null?nS:rS,t=s(u,f),Fo){g=0;do{if(Fo=!1,jo=0,25<=g)throw Error(r(301));g+=1,Ze=Xe=null,o.updateQueue=null,qi.current=oS,t=s(u,f)}while(Fo)}if(qi.current=Ji,o=Xe!==null&&Xe.next!==null,sr=0,Ze=Xe=He=null,Yi=!1,o)throw Error(r(300));return t}function Ma(){var t=jo!==0;return jo=0,t}function on(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?He.memoizedState=Ze=t:Ze=Ze.next=t,Ze}function Lt(){if(Xe===null){var t=He.alternate;t=t!==null?t.memoizedState:null}else t=Xe.next;var o=Ze===null?He.memoizedState:Ze.next;if(o!==null)Ze=o,Xe=t;else{if(t===null)throw Error(r(310));Xe=t,t={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},Ze===null?He.memoizedState=Ze=t:Ze=Ze.next=t}return Ze}function Vo(t,o){return typeof o=="function"?o(t):o}function ka(t){var o=Lt(),s=o.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=t;var u=Xe,f=u.baseQueue,g=s.pending;if(g!==null){if(f!==null){var C=f.next;f.next=g.next,g.next=C}u.baseQueue=f=g,s.pending=null}if(f!==null){g=f.next,u=u.baseState;var D=C=null,M=null,z=g;do{var ne=z.lane;if((sr&ne)===ne)M!==null&&(M=M.next={lane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),u=z.hasEagerState?z.eagerState:t(u,z.action);else{var ie={lane:ne,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null};M===null?(D=M=ie,C=u):M=M.next=ie,He.lanes|=ne,lr|=ne}z=z.next}while(z!==null&&z!==g);M===null?C=u:M.next=D,Wt(u,o.memoizedState)||(wt=!0),o.memoizedState=u,o.baseState=C,o.baseQueue=M,s.lastRenderedState=u}if(t=s.interleaved,t!==null){f=t;do g=f.lane,He.lanes|=g,lr|=g,f=f.next;while(f!==t)}else f===null&&(s.lanes=0);return[o.memoizedState,s.dispatch]}function $a(t){var o=Lt(),s=o.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=t;var u=s.dispatch,f=s.pending,g=o.memoizedState;if(f!==null){s.pending=null;var C=f=f.next;do g=t(g,C.action),C=C.next;while(C!==f);Wt(g,o.memoizedState)||(wt=!0),o.memoizedState=g,o.baseQueue===null&&(o.baseState=g),s.lastRenderedState=g}return[g,u]}function rp(){}function op(t,o){var s=He,u=Lt(),f=o(),g=!Wt(u.memoizedState,f);if(g&&(u.memoizedState=f,wt=!0),u=u.queue,Na(lp.bind(null,s,u,t),[t]),u.getSnapshot!==o||g||Ze!==null&&Ze.memoizedState.tag&1){if(s.flags|=2048,zo(9,sp.bind(null,s,u,f,o),void 0,null),Je===null)throw Error(r(349));(sr&30)!==0||ip(s,o,f)}return f}function ip(t,o,s){t.flags|=16384,t={getSnapshot:o,value:s},o=He.updateQueue,o===null?(o={lastEffect:null,stores:null},He.updateQueue=o,o.stores=[t]):(s=o.stores,s===null?o.stores=[t]:s.push(t))}function sp(t,o,s,u){o.value=s,o.getSnapshot=u,ap(o)&&up(t)}function lp(t,o,s){return s(function(){ap(o)&&up(t)})}function ap(t){var o=t.getSnapshot;t=t.value;try{var s=o();return!Wt(t,s)}catch{return!0}}function up(t){var o=hn(t,1);o!==null&&Yt(o,t,1,-1)}function cp(t){var o=on();return typeof t=="function"&&(t=t()),o.memoizedState=o.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:t},o.queue=t,t=t.dispatch=tS.bind(null,He,t),[o.memoizedState,t]}function zo(t,o,s,u){return t={tag:t,create:o,destroy:s,deps:u,next:null},o=He.updateQueue,o===null?(o={lastEffect:null,stores:null},He.updateQueue=o,o.lastEffect=t.next=t):(s=o.lastEffect,s===null?o.lastEffect=t.next=t:(u=s.next,s.next=t,t.next=u,o.lastEffect=t)),t}function dp(){return Lt().memoizedState}function Qi(t,o,s,u){var f=on();He.flags|=t,f.memoizedState=zo(1|o,s,void 0,u===void 0?null:u)}function Zi(t,o,s,u){var f=Lt();u=u===void 0?null:u;var g=void 0;if(Xe!==null){var C=Xe.memoizedState;if(g=C.destroy,u!==null&&Da(u,C.deps)){f.memoizedState=zo(o,s,g,u);return}}He.flags|=t,f.memoizedState=zo(1|o,s,g,u)}function fp(t,o){return Qi(8390656,8,t,o)}function Na(t,o){return Zi(2048,8,t,o)}function pp(t,o){return Zi(4,2,t,o)}function gp(t,o){return Zi(4,4,t,o)}function hp(t,o){if(typeof o=="function")return t=t(),o(t),function(){o(null)};if(o!=null)return t=t(),o.current=t,function(){o.current=null}}function mp(t,o,s){return s=s!=null?s.concat([t]):null,Zi(4,4,hp.bind(null,o,t),s)}function ba(){}function vp(t,o){var s=Lt();o=o===void 0?null:o;var u=s.memoizedState;return u!==null&&o!==null&&Da(o,u[1])?u[0]:(s.memoizedState=[t,o],t)}function yp(t,o){var s=Lt();o=o===void 0?null:o;var u=s.memoizedState;return u!==null&&o!==null&&Da(o,u[1])?u[0]:(t=t(),s.memoizedState=[t,o],t)}function wp(t,o,s){return(sr&21)===0?(t.baseState&&(t.baseState=!1,wt=!0),t.memoizedState=s):(Wt(s,o)||(s=Xd(),He.lanes|=s,lr|=s,t.baseState=!0),o)}function J0(t,o){var s=ke;ke=s!==0&&4>s?s:4,t(!0);var u=Ia.transition;Ia.transition={};try{t(!1),o()}finally{ke=s,Ia.transition=u}}function Sp(){return Lt().memoizedState}function eS(t,o,s){var u=Hn(t);if(s={lane:u,action:s,hasEagerState:!1,eagerState:null,next:null},xp(t))Cp(o,s);else if(s=Zf(t,o,s,u),s!==null){var f=pt();Yt(s,t,u,f),Ep(s,o,u)}}function tS(t,o,s){var u=Hn(t),f={lane:u,action:s,hasEagerState:!1,eagerState:null,next:null};if(xp(t))Cp(o,f);else{var g=t.alternate;if(t.lanes===0&&(g===null||g.lanes===0)&&(g=o.lastRenderedReducer,g!==null))try{var C=o.lastRenderedState,D=g(C,s);if(f.hasEagerState=!0,f.eagerState=D,Wt(D,C)){var M=o.interleaved;M===null?(f.next=f,Ca(o)):(f.next=M.next,M.next=f),o.interleaved=f;return}}catch{}finally{}s=Zf(t,o,f,u),s!==null&&(f=pt(),Yt(s,t,u,f),Ep(s,o,u))}}function xp(t){var o=t.alternate;return t===He||o!==null&&o===He}function Cp(t,o){Fo=Yi=!0;var s=t.pending;s===null?o.next=o:(o.next=s.next,s.next=o),t.pending=o}function Ep(t,o,s){if((s&4194240)!==0){var u=o.lanes;u&=t.pendingLanes,s|=u,o.lanes=s,Ll(t,s)}}var Ji={readContext:At,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},nS={readContext:At,useCallback:function(t,o){return on().memoizedState=[t,o===void 0?null:o],t},useContext:At,useEffect:fp,useImperativeHandle:function(t,o,s){return s=s!=null?s.concat([t]):null,Qi(4194308,4,hp.bind(null,o,t),s)},useLayoutEffect:function(t,o){return Qi(4194308,4,t,o)},useInsertionEffect:function(t,o){return Qi(4,2,t,o)},useMemo:function(t,o){var s=on();return o=o===void 0?null:o,t=t(),s.memoizedState=[t,o],t},useReducer:function(t,o,s){var u=on();return o=s!==void 0?s(o):o,u.memoizedState=u.baseState=o,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},u.queue=t,t=t.dispatch=eS.bind(null,He,t),[u.memoizedState,t]},useRef:function(t){var o=on();return t={current:t},o.memoizedState=t},useState:cp,useDebugValue:ba,useDeferredValue:function(t){return on().memoizedState=t},useTransition:function(){var t=cp(!1),o=t[0];return t=J0.bind(null,t[1]),on().memoizedState=t,[o,t]},useMutableSource:function(){},useSyncExternalStore:function(t,o,s){var u=He,f=on();if(je){if(s===void 0)throw Error(r(407));s=s()}else{if(s=o(),Je===null)throw Error(r(349));(sr&30)!==0||ip(u,o,s)}f.memoizedState=s;var g={value:s,getSnapshot:o};return f.queue=g,fp(lp.bind(null,u,g,t),[t]),u.flags|=2048,zo(9,sp.bind(null,u,g,s,o),void 0,null),s},useId:function(){var t=on(),o=Je.identifierPrefix;if(je){var s=gn,u=pn;s=(u&~(1<<32-Bt(u)-1)).toString(32)+s,o=":"+o+"R"+s,s=jo++,0<s&&(o+="H"+s.toString(32)),o+=":"}else s=Z0++,o=":"+o+"r"+s.toString(32)+":";return t.memoizedState=o},unstable_isNewReconciler:!1},rS={readContext:At,useCallback:vp,useContext:At,useEffect:Na,useImperativeHandle:mp,useInsertionEffect:pp,useLayoutEffect:gp,useMemo:yp,useReducer:ka,useRef:dp,useState:function(){return ka(Vo)},useDebugValue:ba,useDeferredValue:function(t){var o=Lt();return wp(o,Xe.memoizedState,t)},useTransition:function(){var t=ka(Vo)[0],o=Lt().memoizedState;return[t,o]},useMutableSource:rp,useSyncExternalStore:op,useId:Sp,unstable_isNewReconciler:!1},oS={readContext:At,useCallback:vp,useContext:At,useEffect:Na,useImperativeHandle:mp,useInsertionEffect:pp,useLayoutEffect:gp,useMemo:yp,useReducer:$a,useRef:dp,useState:function(){return $a(Vo)},useDebugValue:ba,useDeferredValue:function(t){var o=Lt();return Xe===null?o.memoizedState=t:wp(o,Xe.memoizedState,t)},useTransition:function(){var t=$a(Vo)[0],o=Lt().memoizedState;return[t,o]},useMutableSource:rp,useSyncExternalStore:op,useId:Sp,unstable_isNewReconciler:!1};function Kt(t,o){if(t&&t.defaultProps){o=G({},o),t=t.defaultProps;for(var s in t)o[s]===void 0&&(o[s]=t[s]);return o}return o}function Aa(t,o,s,u){o=t.memoizedState,s=s(u,o),s=s==null?o:G({},o,s),t.memoizedState=s,t.lanes===0&&(t.updateQueue.baseState=s)}var es={isMounted:function(t){return(t=t._reactInternals)?Jn(t)===t:!1},enqueueSetState:function(t,o,s){t=t._reactInternals;var u=pt(),f=Hn(t),g=mn(u,f);g.payload=o,s!=null&&(g.callback=s),o=Fn(t,g,f),o!==null&&(Yt(o,t,f,u),Gi(o,t,f))},enqueueReplaceState:function(t,o,s){t=t._reactInternals;var u=pt(),f=Hn(t),g=mn(u,f);g.tag=1,g.payload=o,s!=null&&(g.callback=s),o=Fn(t,g,f),o!==null&&(Yt(o,t,f,u),Gi(o,t,f))},enqueueForceUpdate:function(t,o){t=t._reactInternals;var s=pt(),u=Hn(t),f=mn(s,u);f.tag=2,o!=null&&(f.callback=o),o=Fn(t,f,u),o!==null&&(Yt(o,t,u,s),Gi(o,t,u))}};function Rp(t,o,s,u,f,g,C){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,g,C):o.prototype&&o.prototype.isPureReactComponent?!To(s,u)||!To(f,g):!0}function Pp(t,o,s){var u=!1,f=bn,g=o.contextType;return typeof g=="object"&&g!==null?g=At(g):(f=yt(o)?tr:ot.current,u=o.contextTypes,g=(u=u!=null)?kr(t,f):bn),o=new o(s,g),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=es,t.stateNode=o,o._reactInternals=t,u&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=f,t.__reactInternalMemoizedMaskedChildContext=g),o}function _p(t,o,s,u){t=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(s,u),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(s,u),o.state!==t&&es.enqueueReplaceState(o,o.state,null)}function La(t,o,s,u){var f=t.stateNode;f.props=s,f.state=t.memoizedState,f.refs={},Ea(t);var g=o.contextType;typeof g=="object"&&g!==null?f.context=At(g):(g=yt(o)?tr:ot.current,f.context=kr(t,g)),f.state=t.memoizedState,g=o.getDerivedStateFromProps,typeof g=="function"&&(Aa(t,o,g,s),f.state=t.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(o=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),o!==f.state&&es.enqueueReplaceState(f,f.state,null),Ki(t,s,f,u),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308)}function Vr(t,o){try{var s="",u=o;do s+=Y(u),u=u.return;while(u);var f=s}catch(g){f=`
Error generating stack: `+g.message+`
`+g.stack}return{value:t,source:o,stack:f,digest:null}}function Fa(t,o,s){return{value:t,source:null,stack:s??null,digest:o??null}}function ja(t,o){try{console.error(o.value)}catch(s){setTimeout(function(){throw s})}}var iS=typeof WeakMap=="function"?WeakMap:Map;function Tp(t,o,s){s=mn(-1,s),s.tag=3,s.payload={element:null};var u=o.value;return s.callback=function(){ls||(ls=!0,eu=u),ja(t,o)},s}function Ip(t,o,s){s=mn(-1,s),s.tag=3;var u=t.type.getDerivedStateFromError;if(typeof u=="function"){var f=o.value;s.payload=function(){return u(f)},s.callback=function(){ja(t,o)}}var g=t.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(s.callback=function(){ja(t,o),typeof u!="function"&&(Vn===null?Vn=new Set([this]):Vn.add(this));var C=o.stack;this.componentDidCatch(o.value,{componentStack:C!==null?C:""})}),s}function Dp(t,o,s){var u=t.pingCache;if(u===null){u=t.pingCache=new iS;var f=new Set;u.set(o,f)}else f=u.get(o),f===void 0&&(f=new Set,u.set(o,f));f.has(s)||(f.add(s),t=wS.bind(null,t,o,s),o.then(t,t))}function Op(t){do{var o;if((o=t.tag===13)&&(o=t.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return t;t=t.return}while(t!==null);return null}function Mp(t,o,s,u,f){return(t.mode&1)===0?(t===o?t.flags|=65536:(t.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(o=mn(-1,1),o.tag=2,Fn(s,o,1))),s.lanes|=1),t):(t.flags|=65536,t.lanes=f,t)}var sS=N.ReactCurrentOwner,wt=!1;function ft(t,o,s,u){o.child=t===null?Qf(o,null,s,u):Ar(o,t.child,s,u)}function kp(t,o,s,u,f){s=s.render;var g=o.ref;return Fr(o,f),u=Oa(t,o,s,u,g,f),s=Ma(),t!==null&&!wt?(o.updateQueue=t.updateQueue,o.flags&=-2053,t.lanes&=~f,vn(t,o,f)):(je&&s&&pa(o),o.flags|=1,ft(t,o,u,f),o.child)}function $p(t,o,s,u,f){if(t===null){var g=s.type;return typeof g=="function"&&!lu(g)&&g.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(o.tag=15,o.type=g,Np(t,o,g,u,f)):(t=ps(s.type,null,u,o,o.mode,f),t.ref=o.ref,t.return=o,o.child=t)}if(g=t.child,(t.lanes&f)===0){var C=g.memoizedProps;if(s=s.compare,s=s!==null?s:To,s(C,u)&&t.ref===o.ref)return vn(t,o,f)}return o.flags|=1,t=Bn(g,u),t.ref=o.ref,t.return=o,o.child=t}function Np(t,o,s,u,f){if(t!==null){var g=t.memoizedProps;if(To(g,u)&&t.ref===o.ref)if(wt=!1,o.pendingProps=u=g,(t.lanes&f)!==0)(t.flags&131072)!==0&&(wt=!0);else return o.lanes=t.lanes,vn(t,o,f)}return Va(t,o,s,u,f)}function bp(t,o,s){var u=o.pendingProps,f=u.children,g=t!==null?t.memoizedState:null;if(u.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},be(Hr,It),It|=s;else{if((s&1073741824)===0)return t=g!==null?g.baseLanes|s:s,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:t,cachePool:null,transitions:null},o.updateQueue=null,be(Hr,It),It|=t,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=g!==null?g.baseLanes:s,be(Hr,It),It|=u}else g!==null?(u=g.baseLanes|s,o.memoizedState=null):u=s,be(Hr,It),It|=u;return ft(t,o,f,s),o.child}function Ap(t,o){var s=o.ref;(t===null&&s!==null||t!==null&&t.ref!==s)&&(o.flags|=512,o.flags|=2097152)}function Va(t,o,s,u,f){var g=yt(s)?tr:ot.current;return g=kr(o,g),Fr(o,f),s=Oa(t,o,s,u,g,f),u=Ma(),t!==null&&!wt?(o.updateQueue=t.updateQueue,o.flags&=-2053,t.lanes&=~f,vn(t,o,f)):(je&&u&&pa(o),o.flags|=1,ft(t,o,s,f),o.child)}function Lp(t,o,s,u,f){if(yt(s)){var g=!0;Fi(o)}else g=!1;if(Fr(o,f),o.stateNode===null)ns(t,o),Pp(o,s,u),La(o,s,u,f),u=!0;else if(t===null){var C=o.stateNode,D=o.memoizedProps;C.props=D;var M=C.context,z=s.contextType;typeof z=="object"&&z!==null?z=At(z):(z=yt(s)?tr:ot.current,z=kr(o,z));var ne=s.getDerivedStateFromProps,ie=typeof ne=="function"||typeof C.getSnapshotBeforeUpdate=="function";ie||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(D!==u||M!==z)&&_p(o,C,u,z),Ln=!1;var J=o.memoizedState;C.state=J,Ki(o,u,C,f),M=o.memoizedState,D!==u||J!==M||vt.current||Ln?(typeof ne=="function"&&(Aa(o,s,ne,u),M=o.memoizedState),(D=Ln||Rp(o,s,D,u,J,M,z))?(ie||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(o.flags|=4194308)):(typeof C.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=u,o.memoizedState=M),C.props=u,C.state=M,C.context=z,u=D):(typeof C.componentDidMount=="function"&&(o.flags|=4194308),u=!1)}else{C=o.stateNode,Jf(t,o),D=o.memoizedProps,z=o.type===o.elementType?D:Kt(o.type,D),C.props=z,ie=o.pendingProps,J=C.context,M=s.contextType,typeof M=="object"&&M!==null?M=At(M):(M=yt(s)?tr:ot.current,M=kr(o,M));var fe=s.getDerivedStateFromProps;(ne=typeof fe=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(D!==ie||J!==M)&&_p(o,C,u,M),Ln=!1,J=o.memoizedState,C.state=J,Ki(o,u,C,f);var me=o.memoizedState;D!==ie||J!==me||vt.current||Ln?(typeof fe=="function"&&(Aa(o,s,fe,u),me=o.memoizedState),(z=Ln||Rp(o,s,z,u,J,me,M)||!1)?(ne||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(u,me,M),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(u,me,M)),typeof C.componentDidUpdate=="function"&&(o.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof C.componentDidUpdate!="function"||D===t.memoizedProps&&J===t.memoizedState||(o.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||D===t.memoizedProps&&J===t.memoizedState||(o.flags|=1024),o.memoizedProps=u,o.memoizedState=me),C.props=u,C.state=me,C.context=M,u=z):(typeof C.componentDidUpdate!="function"||D===t.memoizedProps&&J===t.memoizedState||(o.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||D===t.memoizedProps&&J===t.memoizedState||(o.flags|=1024),u=!1)}return za(t,o,s,u,g,f)}function za(t,o,s,u,f,g){Ap(t,o);var C=(o.flags&128)!==0;if(!u&&!C)return f&&Hf(o,s,!1),vn(t,o,g);u=o.stateNode,sS.current=o;var D=C&&typeof s.getDerivedStateFromError!="function"?null:u.render();return o.flags|=1,t!==null&&C?(o.child=Ar(o,t.child,null,g),o.child=Ar(o,null,D,g)):ft(t,o,D,g),o.memoizedState=u.state,f&&Hf(o,s,!0),o.child}function Fp(t){var o=t.stateNode;o.pendingContext?Vf(t,o.pendingContext,o.pendingContext!==o.context):o.context&&Vf(t,o.context,!1),Ra(t,o.containerInfo)}function jp(t,o,s,u,f){return br(),va(f),o.flags|=256,ft(t,o,s,u),o.child}var Ha={dehydrated:null,treeContext:null,retryLane:0};function Ua(t){return{baseLanes:t,cachePool:null,transitions:null}}function Vp(t,o,s){var u=o.pendingProps,f=ze.current,g=!1,C=(o.flags&128)!==0,D;if((D=C)||(D=t!==null&&t.memoizedState===null?!1:(f&2)!==0),D?(g=!0,o.flags&=-129):(t===null||t.memoizedState!==null)&&(f|=1),be(ze,f&1),t===null)return ma(o),t=o.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((o.mode&1)===0?o.lanes=1:t.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(C=u.children,t=u.fallback,g?(u=o.mode,g=o.child,C={mode:"hidden",children:C},(u&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=C):g=gs(C,u,0,null),t=dr(t,u,s,null),g.return=o,t.return=o,g.sibling=t,o.child=g,o.child.memoizedState=Ua(s),o.memoizedState=Ha,t):Ba(o,C));if(f=t.memoizedState,f!==null&&(D=f.dehydrated,D!==null))return lS(t,o,C,u,D,f,s);if(g){g=u.fallback,C=o.mode,f=t.child,D=f.sibling;var M={mode:"hidden",children:u.children};return(C&1)===0&&o.child!==f?(u=o.child,u.childLanes=0,u.pendingProps=M,o.deletions=null):(u=Bn(f,M),u.subtreeFlags=f.subtreeFlags&14680064),D!==null?g=Bn(D,g):(g=dr(g,C,s,null),g.flags|=2),g.return=o,u.return=o,u.sibling=g,o.child=u,u=g,g=o.child,C=t.child.memoizedState,C=C===null?Ua(s):{baseLanes:C.baseLanes|s,cachePool:null,transitions:C.transitions},g.memoizedState=C,g.childLanes=t.childLanes&~s,o.memoizedState=Ha,u}return g=t.child,t=g.sibling,u=Bn(g,{mode:"visible",children:u.children}),(o.mode&1)===0&&(u.lanes=s),u.return=o,u.sibling=null,t!==null&&(s=o.deletions,s===null?(o.deletions=[t],o.flags|=16):s.push(t)),o.child=u,o.memoizedState=null,u}function Ba(t,o){return o=gs({mode:"visible",children:o},t.mode,0,null),o.return=t,t.child=o}function ts(t,o,s,u){return u!==null&&va(u),Ar(o,t.child,null,s),t=Ba(o,o.pendingProps.children),t.flags|=2,o.memoizedState=null,t}function lS(t,o,s,u,f,g,C){if(s)return o.flags&256?(o.flags&=-257,u=Fa(Error(r(422))),ts(t,o,C,u)):o.memoizedState!==null?(o.child=t.child,o.flags|=128,null):(g=u.fallback,f=o.mode,u=gs({mode:"visible",children:u.children},f,0,null),g=dr(g,f,C,null),g.flags|=2,u.return=o,g.return=o,u.sibling=g,o.child=u,(o.mode&1)!==0&&Ar(o,t.child,null,C),o.child.memoizedState=Ua(C),o.memoizedState=Ha,g);if((o.mode&1)===0)return ts(t,o,C,null);if(f.data==="$!"){if(u=f.nextSibling&&f.nextSibling.dataset,u)var D=u.dgst;return u=D,g=Error(r(419)),u=Fa(g,u,void 0),ts(t,o,C,u)}if(D=(C&t.childLanes)!==0,wt||D){if(u=Je,u!==null){switch(C&-C){case 4:f=2;break;case 16:f=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(u.suspendedLanes|C))!==0?0:f,f!==0&&f!==g.retryLane&&(g.retryLane=f,hn(t,f),Yt(u,t,f,-1))}return su(),u=Fa(Error(r(421))),ts(t,o,C,u)}return f.data==="$?"?(o.flags|=128,o.child=t.child,o=SS.bind(null,t),f._reactRetry=o,null):(t=g.treeContext,Tt=$n(f.nextSibling),_t=o,je=!0,Gt=null,t!==null&&(Nt[bt++]=pn,Nt[bt++]=gn,Nt[bt++]=nr,pn=t.id,gn=t.overflow,nr=o),o=Ba(o,u.children),o.flags|=4096,o)}function zp(t,o,s){t.lanes|=o;var u=t.alternate;u!==null&&(u.lanes|=o),xa(t.return,o,s)}function Wa(t,o,s,u,f){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:u,tail:s,tailMode:f}:(g.isBackwards=o,g.rendering=null,g.renderingStartTime=0,g.last=u,g.tail=s,g.tailMode=f)}function Hp(t,o,s){var u=o.pendingProps,f=u.revealOrder,g=u.tail;if(ft(t,o,u.children,s),u=ze.current,(u&2)!==0)u=u&1|2,o.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=o.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&zp(t,s,o);else if(t.tag===19)zp(t,s,o);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===o)break e;for(;t.sibling===null;){if(t.return===null||t.return===o)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}u&=1}if(be(ze,u),(o.mode&1)===0)o.memoizedState=null;else switch(f){case"forwards":for(s=o.child,f=null;s!==null;)t=s.alternate,t!==null&&Xi(t)===null&&(f=s),s=s.sibling;s=f,s===null?(f=o.child,o.child=null):(f=s.sibling,s.sibling=null),Wa(o,!1,f,s,g);break;case"backwards":for(s=null,f=o.child,o.child=null;f!==null;){if(t=f.alternate,t!==null&&Xi(t)===null){o.child=f;break}t=f.sibling,f.sibling=s,s=f,f=t}Wa(o,!0,s,null,g);break;case"together":Wa(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function ns(t,o){(o.mode&1)===0&&t!==null&&(t.alternate=null,o.alternate=null,o.flags|=2)}function vn(t,o,s){if(t!==null&&(o.dependencies=t.dependencies),lr|=o.lanes,(s&o.childLanes)===0)return null;if(t!==null&&o.child!==t.child)throw Error(r(153));if(o.child!==null){for(t=o.child,s=Bn(t,t.pendingProps),o.child=s,s.return=o;t.sibling!==null;)t=t.sibling,s=s.sibling=Bn(t,t.pendingProps),s.return=o;s.sibling=null}return o.child}function aS(t,o,s){switch(o.tag){case 3:Fp(o),br();break;case 5:np(o);break;case 1:yt(o.type)&&Fi(o);break;case 4:Ra(o,o.stateNode.containerInfo);break;case 10:var u=o.type._context,f=o.memoizedProps.value;be(Bi,u._currentValue),u._currentValue=f;break;case 13:if(u=o.memoizedState,u!==null)return u.dehydrated!==null?(be(ze,ze.current&1),o.flags|=128,null):(s&o.child.childLanes)!==0?Vp(t,o,s):(be(ze,ze.current&1),t=vn(t,o,s),t!==null?t.sibling:null);be(ze,ze.current&1);break;case 19:if(u=(s&o.childLanes)!==0,(t.flags&128)!==0){if(u)return Hp(t,o,s);o.flags|=128}if(f=o.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),be(ze,ze.current),u)break;return null;case 22:case 23:return o.lanes=0,bp(t,o,s)}return vn(t,o,s)}var Up,Ga,Bp,Wp;Up=function(t,o){for(var s=o.child;s!==null;){if(s.tag===5||s.tag===6)t.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},Ga=function(){},Bp=function(t,o,s,u){var f=t.memoizedProps;if(f!==u){t=o.stateNode,ir(rn.current);var g=null;switch(s){case"input":f=he(t,f),u=he(t,u),g=[];break;case"select":f=G({},f,{value:void 0}),u=G({},u,{value:void 0}),g=[];break;case"textarea":f=Rl(t,f),u=Rl(t,u),g=[];break;default:typeof f.onClick!="function"&&typeof u.onClick=="function"&&(t.onclick=bi)}_l(s,u);var C;s=null;for(z in f)if(!u.hasOwnProperty(z)&&f.hasOwnProperty(z)&&f[z]!=null)if(z==="style"){var D=f[z];for(C in D)D.hasOwnProperty(C)&&(s||(s={}),s[C]="")}else z!=="dangerouslySetInnerHTML"&&z!=="children"&&z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&z!=="autoFocus"&&(a.hasOwnProperty(z)?g||(g=[]):(g=g||[]).push(z,null));for(z in u){var M=u[z];if(D=f?.[z],u.hasOwnProperty(z)&&M!==D&&(M!=null||D!=null))if(z==="style")if(D){for(C in D)!D.hasOwnProperty(C)||M&&M.hasOwnProperty(C)||(s||(s={}),s[C]="");for(C in M)M.hasOwnProperty(C)&&D[C]!==M[C]&&(s||(s={}),s[C]=M[C])}else s||(g||(g=[]),g.push(z,s)),s=M;else z==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,D=D?D.__html:void 0,M!=null&&D!==M&&(g=g||[]).push(z,M)):z==="children"?typeof M!="string"&&typeof M!="number"||(g=g||[]).push(z,""+M):z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&(a.hasOwnProperty(z)?(M!=null&&z==="onScroll"&&Ae("scroll",t),g||D===M||(g=[])):(g=g||[]).push(z,M))}s&&(g=g||[]).push("style",s);var z=g;(o.updateQueue=z)&&(o.flags|=4)}},Wp=function(t,o,s,u){s!==u&&(o.flags|=4)};function Ho(t,o){if(!je)switch(t.tailMode){case"hidden":o=t.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?t.tail=null:s.sibling=null;break;case"collapsed":s=t.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?o||t.tail===null?t.tail=null:t.tail.sibling=null:u.sibling=null}}function st(t){var o=t.alternate!==null&&t.alternate.child===t.child,s=0,u=0;if(o)for(var f=t.child;f!==null;)s|=f.lanes|f.childLanes,u|=f.subtreeFlags&14680064,u|=f.flags&14680064,f.return=t,f=f.sibling;else for(f=t.child;f!==null;)s|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=t,f=f.sibling;return t.subtreeFlags|=u,t.childLanes=s,o}function uS(t,o,s){var u=o.pendingProps;switch(ga(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(o),null;case 1:return yt(o.type)&&Li(),st(o),null;case 3:return u=o.stateNode,jr(),Le(vt),Le(ot),Ta(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(t===null||t.child===null)&&(Hi(o)?o.flags|=4:t===null||t.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Gt!==null&&(ru(Gt),Gt=null))),Ga(t,o),st(o),null;case 5:Pa(o);var f=ir(Lo.current);if(s=o.type,t!==null&&o.stateNode!=null)Bp(t,o,s,u,f),t.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!u){if(o.stateNode===null)throw Error(r(166));return st(o),null}if(t=ir(rn.current),Hi(o)){u=o.stateNode,s=o.type;var g=o.memoizedProps;switch(u[nn]=o,u[ko]=g,t=(o.mode&1)!==0,s){case"dialog":Ae("cancel",u),Ae("close",u);break;case"iframe":case"object":case"embed":Ae("load",u);break;case"video":case"audio":for(f=0;f<Do.length;f++)Ae(Do[f],u);break;case"source":Ae("error",u);break;case"img":case"image":case"link":Ae("error",u),Ae("load",u);break;case"details":Ae("toggle",u);break;case"input":Be(u,g),Ae("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!g.multiple},Ae("invalid",u);break;case"textarea":Td(u,g),Ae("invalid",u)}_l(s,g),f=null;for(var C in g)if(g.hasOwnProperty(C)){var D=g[C];C==="children"?typeof D=="string"?u.textContent!==D&&(g.suppressHydrationWarning!==!0&&Ni(u.textContent,D,t),f=["children",D]):typeof D=="number"&&u.textContent!==""+D&&(g.suppressHydrationWarning!==!0&&Ni(u.textContent,D,t),f=["children",""+D]):a.hasOwnProperty(C)&&D!=null&&C==="onScroll"&&Ae("scroll",u)}switch(s){case"input":pe(u),ao(u,g,!0);break;case"textarea":pe(u),Dd(u);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(u.onclick=bi)}u=f,o.updateQueue=u,u!==null&&(o.flags|=4)}else{C=f.nodeType===9?f:f.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Od(s)),t==="http://www.w3.org/1999/xhtml"?s==="script"?(t=C.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof u.is=="string"?t=C.createElement(s,{is:u.is}):(t=C.createElement(s),s==="select"&&(C=t,u.multiple?C.multiple=!0:u.size&&(C.size=u.size))):t=C.createElementNS(t,s),t[nn]=o,t[ko]=u,Up(t,o,!1,!1),o.stateNode=t;e:{switch(C=Tl(s,u),s){case"dialog":Ae("cancel",t),Ae("close",t),f=u;break;case"iframe":case"object":case"embed":Ae("load",t),f=u;break;case"video":case"audio":for(f=0;f<Do.length;f++)Ae(Do[f],t);f=u;break;case"source":Ae("error",t),f=u;break;case"img":case"image":case"link":Ae("error",t),Ae("load",t),f=u;break;case"details":Ae("toggle",t),f=u;break;case"input":Be(t,u),f=he(t,u),Ae("invalid",t);break;case"option":f=u;break;case"select":t._wrapperState={wasMultiple:!!u.multiple},f=G({},u,{value:void 0}),Ae("invalid",t);break;case"textarea":Td(t,u),f=Rl(t,u),Ae("invalid",t);break;default:f=u}_l(s,f),D=f;for(g in D)if(D.hasOwnProperty(g)){var M=D[g];g==="style"?$d(t,M):g==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,M!=null&&Md(t,M)):g==="children"?typeof M=="string"?(s!=="textarea"||M!=="")&&uo(t,M):typeof M=="number"&&uo(t,""+M):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(a.hasOwnProperty(g)?M!=null&&g==="onScroll"&&Ae("scroll",t):M!=null&&I(t,g,M,C))}switch(s){case"input":pe(t),ao(t,u,!1);break;case"textarea":pe(t),Dd(t);break;case"option":u.value!=null&&t.setAttribute("value",""+oe(u.value));break;case"select":t.multiple=!!u.multiple,g=u.value,g!=null?_n(t,!!u.multiple,g,!1):u.defaultValue!=null&&_n(t,!!u.multiple,u.defaultValue,!0);break;default:typeof f.onClick=="function"&&(t.onclick=bi)}switch(s){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return st(o),null;case 6:if(t&&o.stateNode!=null)Wp(t,o,t.memoizedProps,u);else{if(typeof u!="string"&&o.stateNode===null)throw Error(r(166));if(s=ir(Lo.current),ir(rn.current),Hi(o)){if(u=o.stateNode,s=o.memoizedProps,u[nn]=o,(g=u.nodeValue!==s)&&(t=_t,t!==null))switch(t.tag){case 3:Ni(u.nodeValue,s,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ni(u.nodeValue,s,(t.mode&1)!==0)}g&&(o.flags|=4)}else u=(s.nodeType===9?s:s.ownerDocument).createTextNode(u),u[nn]=o,o.stateNode=u}return st(o),null;case 13:if(Le(ze),u=o.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(je&&Tt!==null&&(o.mode&1)!==0&&(o.flags&128)===0)Xf(),br(),o.flags|=98560,g=!1;else if(g=Hi(o),u!==null&&u.dehydrated!==null){if(t===null){if(!g)throw Error(r(318));if(g=o.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[nn]=o}else br(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;st(o),g=!1}else Gt!==null&&(ru(Gt),Gt=null),g=!0;if(!g)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=s,o):(u=u!==null,u!==(t!==null&&t.memoizedState!==null)&&u&&(o.child.flags|=8192,(o.mode&1)!==0&&(t===null||(ze.current&1)!==0?qe===0&&(qe=3):su())),o.updateQueue!==null&&(o.flags|=4),st(o),null);case 4:return jr(),Ga(t,o),t===null&&Oo(o.stateNode.containerInfo),st(o),null;case 10:return Sa(o.type._context),st(o),null;case 17:return yt(o.type)&&Li(),st(o),null;case 19:if(Le(ze),g=o.memoizedState,g===null)return st(o),null;if(u=(o.flags&128)!==0,C=g.rendering,C===null)if(u)Ho(g,!1);else{if(qe!==0||t!==null&&(t.flags&128)!==0)for(t=o.child;t!==null;){if(C=Xi(t),C!==null){for(o.flags|=128,Ho(g,!1),u=C.updateQueue,u!==null&&(o.updateQueue=u,o.flags|=4),o.subtreeFlags=0,u=s,s=o.child;s!==null;)g=s,t=u,g.flags&=14680066,C=g.alternate,C===null?(g.childLanes=0,g.lanes=t,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=C.childLanes,g.lanes=C.lanes,g.child=C.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=C.memoizedProps,g.memoizedState=C.memoizedState,g.updateQueue=C.updateQueue,g.type=C.type,t=C.dependencies,g.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),s=s.sibling;return be(ze,ze.current&1|2),o.child}t=t.sibling}g.tail!==null&&We()>Ur&&(o.flags|=128,u=!0,Ho(g,!1),o.lanes=4194304)}else{if(!u)if(t=Xi(C),t!==null){if(o.flags|=128,u=!0,s=t.updateQueue,s!==null&&(o.updateQueue=s,o.flags|=4),Ho(g,!0),g.tail===null&&g.tailMode==="hidden"&&!C.alternate&&!je)return st(o),null}else 2*We()-g.renderingStartTime>Ur&&s!==1073741824&&(o.flags|=128,u=!0,Ho(g,!1),o.lanes=4194304);g.isBackwards?(C.sibling=o.child,o.child=C):(s=g.last,s!==null?s.sibling=C:o.child=C,g.last=C)}return g.tail!==null?(o=g.tail,g.rendering=o,g.tail=o.sibling,g.renderingStartTime=We(),o.sibling=null,s=ze.current,be(ze,u?s&1|2:s&1),o):(st(o),null);case 22:case 23:return iu(),u=o.memoizedState!==null,t!==null&&t.memoizedState!==null!==u&&(o.flags|=8192),u&&(o.mode&1)!==0?(It&1073741824)!==0&&(st(o),o.subtreeFlags&6&&(o.flags|=8192)):st(o),null;case 24:return null;case 25:return null}throw Error(r(156,o.tag))}function cS(t,o){switch(ga(o),o.tag){case 1:return yt(o.type)&&Li(),t=o.flags,t&65536?(o.flags=t&-65537|128,o):null;case 3:return jr(),Le(vt),Le(ot),Ta(),t=o.flags,(t&65536)!==0&&(t&128)===0?(o.flags=t&-65537|128,o):null;case 5:return Pa(o),null;case 13:if(Le(ze),t=o.memoizedState,t!==null&&t.dehydrated!==null){if(o.alternate===null)throw Error(r(340));br()}return t=o.flags,t&65536?(o.flags=t&-65537|128,o):null;case 19:return Le(ze),null;case 4:return jr(),null;case 10:return Sa(o.type._context),null;case 22:case 23:return iu(),null;case 24:return null;default:return null}}var rs=!1,lt=!1,dS=typeof WeakSet=="function"?WeakSet:Set,ge=null;function zr(t,o){var s=t.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(u){Ue(t,o,u)}else s.current=null}function Ka(t,o,s){try{s()}catch(u){Ue(t,o,u)}}var Gp=!1;function fS(t,o){if(ia=Ei,t=Rf(),Ql(t)){if("selectionStart"in t)var s={start:t.selectionStart,end:t.selectionEnd};else e:{s=(s=t.ownerDocument)&&s.defaultView||window;var u=s.getSelection&&s.getSelection();if(u&&u.rangeCount!==0){s=u.anchorNode;var f=u.anchorOffset,g=u.focusNode;u=u.focusOffset;try{s.nodeType,g.nodeType}catch{s=null;break e}var C=0,D=-1,M=-1,z=0,ne=0,ie=t,J=null;t:for(;;){for(var fe;ie!==s||f!==0&&ie.nodeType!==3||(D=C+f),ie!==g||u!==0&&ie.nodeType!==3||(M=C+u),ie.nodeType===3&&(C+=ie.nodeValue.length),(fe=ie.firstChild)!==null;)J=ie,ie=fe;for(;;){if(ie===t)break t;if(J===s&&++z===f&&(D=C),J===g&&++ne===u&&(M=C),(fe=ie.nextSibling)!==null)break;ie=J,J=ie.parentNode}ie=fe}s=D===-1||M===-1?null:{start:D,end:M}}else s=null}s=s||{start:0,end:0}}else s=null;for(sa={focusedElem:t,selectionRange:s},Ei=!1,ge=o;ge!==null;)if(o=ge,t=o.child,(o.subtreeFlags&1028)!==0&&t!==null)t.return=o,ge=t;else for(;ge!==null;){o=ge;try{var me=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(me!==null){var ve=me.memoizedProps,Ge=me.memoizedState,j=o.stateNode,k=j.getSnapshotBeforeUpdate(o.elementType===o.type?ve:Kt(o.type,ve),Ge);j.__reactInternalSnapshotBeforeUpdate=k}break;case 3:var V=o.stateNode.containerInfo;V.nodeType===1?V.textContent="":V.nodeType===9&&V.documentElement&&V.removeChild(V.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(le){Ue(o,o.return,le)}if(t=o.sibling,t!==null){t.return=o.return,ge=t;break}ge=o.return}return me=Gp,Gp=!1,me}function Uo(t,o,s){var u=o.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var f=u=u.next;do{if((f.tag&t)===t){var g=f.destroy;f.destroy=void 0,g!==void 0&&Ka(o,s,g)}f=f.next}while(f!==u)}}function os(t,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var s=o=o.next;do{if((s.tag&t)===t){var u=s.create;s.destroy=u()}s=s.next}while(s!==o)}}function Xa(t){var o=t.ref;if(o!==null){var s=t.stateNode;switch(t.tag){case 5:t=s;break;default:t=s}typeof o=="function"?o(t):o.current=t}}function Kp(t){var o=t.alternate;o!==null&&(t.alternate=null,Kp(o)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(o=t.stateNode,o!==null&&(delete o[nn],delete o[ko],delete o[ca],delete o[X0],delete o[q0])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Xp(t){return t.tag===5||t.tag===3||t.tag===4}function qp(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Xp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function qa(t,o,s){var u=t.tag;if(u===5||u===6)t=t.stateNode,o?s.nodeType===8?s.parentNode.insertBefore(t,o):s.insertBefore(t,o):(s.nodeType===8?(o=s.parentNode,o.insertBefore(t,s)):(o=s,o.appendChild(t)),s=s._reactRootContainer,s!=null||o.onclick!==null||(o.onclick=bi));else if(u!==4&&(t=t.child,t!==null))for(qa(t,o,s),t=t.sibling;t!==null;)qa(t,o,s),t=t.sibling}function Ya(t,o,s){var u=t.tag;if(u===5||u===6)t=t.stateNode,o?s.insertBefore(t,o):s.appendChild(t);else if(u!==4&&(t=t.child,t!==null))for(Ya(t,o,s),t=t.sibling;t!==null;)Ya(t,o,s),t=t.sibling}var nt=null,Xt=!1;function jn(t,o,s){for(s=s.child;s!==null;)Yp(t,o,s),s=s.sibling}function Yp(t,o,s){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(vi,s)}catch{}switch(s.tag){case 5:lt||zr(s,o);case 6:var u=nt,f=Xt;nt=null,jn(t,o,s),nt=u,Xt=f,nt!==null&&(Xt?(t=nt,s=s.stateNode,t.nodeType===8?t.parentNode.removeChild(s):t.removeChild(s)):nt.removeChild(s.stateNode));break;case 18:nt!==null&&(Xt?(t=nt,s=s.stateNode,t.nodeType===8?ua(t.parentNode,s):t.nodeType===1&&ua(t,s),xo(t)):ua(nt,s.stateNode));break;case 4:u=nt,f=Xt,nt=s.stateNode.containerInfo,Xt=!0,jn(t,o,s),nt=u,Xt=f;break;case 0:case 11:case 14:case 15:if(!lt&&(u=s.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){f=u=u.next;do{var g=f,C=g.destroy;g=g.tag,C!==void 0&&((g&2)!==0||(g&4)!==0)&&Ka(s,o,C),f=f.next}while(f!==u)}jn(t,o,s);break;case 1:if(!lt&&(zr(s,o),u=s.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=s.memoizedProps,u.state=s.memoizedState,u.componentWillUnmount()}catch(D){Ue(s,o,D)}jn(t,o,s);break;case 21:jn(t,o,s);break;case 22:s.mode&1?(lt=(u=lt)||s.memoizedState!==null,jn(t,o,s),lt=u):jn(t,o,s);break;default:jn(t,o,s)}}function Qp(t){var o=t.updateQueue;if(o!==null){t.updateQueue=null;var s=t.stateNode;s===null&&(s=t.stateNode=new dS),o.forEach(function(u){var f=xS.bind(null,t,u);s.has(u)||(s.add(u),u.then(f,f))})}}function qt(t,o){var s=o.deletions;if(s!==null)for(var u=0;u<s.length;u++){var f=s[u];try{var g=t,C=o,D=C;e:for(;D!==null;){switch(D.tag){case 5:nt=D.stateNode,Xt=!1;break e;case 3:nt=D.stateNode.containerInfo,Xt=!0;break e;case 4:nt=D.stateNode.containerInfo,Xt=!0;break e}D=D.return}if(nt===null)throw Error(r(160));Yp(g,C,f),nt=null,Xt=!1;var M=f.alternate;M!==null&&(M.return=null),f.return=null}catch(z){Ue(f,o,z)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Zp(o,t),o=o.sibling}function Zp(t,o){var s=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(qt(o,t),sn(t),u&4){try{Uo(3,t,t.return),os(3,t)}catch(ve){Ue(t,t.return,ve)}try{Uo(5,t,t.return)}catch(ve){Ue(t,t.return,ve)}}break;case 1:qt(o,t),sn(t),u&512&&s!==null&&zr(s,s.return);break;case 5:if(qt(o,t),sn(t),u&512&&s!==null&&zr(s,s.return),t.flags&32){var f=t.stateNode;try{uo(f,"")}catch(ve){Ue(t,t.return,ve)}}if(u&4&&(f=t.stateNode,f!=null)){var g=t.memoizedProps,C=s!==null?s.memoizedProps:g,D=t.type,M=t.updateQueue;if(t.updateQueue=null,M!==null)try{D==="input"&&g.type==="radio"&&g.name!=null&&kt(f,g),Tl(D,C);var z=Tl(D,g);for(C=0;C<M.length;C+=2){var ne=M[C],ie=M[C+1];ne==="style"?$d(f,ie):ne==="dangerouslySetInnerHTML"?Md(f,ie):ne==="children"?uo(f,ie):I(f,ne,ie,z)}switch(D){case"input":$t(f,g);break;case"textarea":Id(f,g);break;case"select":var J=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!g.multiple;var fe=g.value;fe!=null?_n(f,!!g.multiple,fe,!1):J!==!!g.multiple&&(g.defaultValue!=null?_n(f,!!g.multiple,g.defaultValue,!0):_n(f,!!g.multiple,g.multiple?[]:"",!1))}f[ko]=g}catch(ve){Ue(t,t.return,ve)}}break;case 6:if(qt(o,t),sn(t),u&4){if(t.stateNode===null)throw Error(r(162));f=t.stateNode,g=t.memoizedProps;try{f.nodeValue=g}catch(ve){Ue(t,t.return,ve)}}break;case 3:if(qt(o,t),sn(t),u&4&&s!==null&&s.memoizedState.isDehydrated)try{xo(o.containerInfo)}catch(ve){Ue(t,t.return,ve)}break;case 4:qt(o,t),sn(t);break;case 13:qt(o,t),sn(t),f=t.child,f.flags&8192&&(g=f.memoizedState!==null,f.stateNode.isHidden=g,!g||f.alternate!==null&&f.alternate.memoizedState!==null||(Ja=We())),u&4&&Qp(t);break;case 22:if(ne=s!==null&&s.memoizedState!==null,t.mode&1?(lt=(z=lt)||ne,qt(o,t),lt=z):qt(o,t),sn(t),u&8192){if(z=t.memoizedState!==null,(t.stateNode.isHidden=z)&&!ne&&(t.mode&1)!==0)for(ge=t,ne=t.child;ne!==null;){for(ie=ge=ne;ge!==null;){switch(J=ge,fe=J.child,J.tag){case 0:case 11:case 14:case 15:Uo(4,J,J.return);break;case 1:zr(J,J.return);var me=J.stateNode;if(typeof me.componentWillUnmount=="function"){u=J,s=J.return;try{o=u,me.props=o.memoizedProps,me.state=o.memoizedState,me.componentWillUnmount()}catch(ve){Ue(u,s,ve)}}break;case 5:zr(J,J.return);break;case 22:if(J.memoizedState!==null){tg(ie);continue}}fe!==null?(fe.return=J,ge=fe):tg(ie)}ne=ne.sibling}e:for(ne=null,ie=t;;){if(ie.tag===5){if(ne===null){ne=ie;try{f=ie.stateNode,z?(g=f.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(D=ie.stateNode,M=ie.memoizedProps.style,C=M!=null&&M.hasOwnProperty("display")?M.display:null,D.style.display=kd("display",C))}catch(ve){Ue(t,t.return,ve)}}}else if(ie.tag===6){if(ne===null)try{ie.stateNode.nodeValue=z?"":ie.memoizedProps}catch(ve){Ue(t,t.return,ve)}}else if((ie.tag!==22&&ie.tag!==23||ie.memoizedState===null||ie===t)&&ie.child!==null){ie.child.return=ie,ie=ie.child;continue}if(ie===t)break e;for(;ie.sibling===null;){if(ie.return===null||ie.return===t)break e;ne===ie&&(ne=null),ie=ie.return}ne===ie&&(ne=null),ie.sibling.return=ie.return,ie=ie.sibling}}break;case 19:qt(o,t),sn(t),u&4&&Qp(t);break;case 21:break;default:qt(o,t),sn(t)}}function sn(t){var o=t.flags;if(o&2){try{e:{for(var s=t.return;s!==null;){if(Xp(s)){var u=s;break e}s=s.return}throw Error(r(160))}switch(u.tag){case 5:var f=u.stateNode;u.flags&32&&(uo(f,""),u.flags&=-33);var g=qp(t);Ya(t,g,f);break;case 3:case 4:var C=u.stateNode.containerInfo,D=qp(t);qa(t,D,C);break;default:throw Error(r(161))}}catch(M){Ue(t,t.return,M)}t.flags&=-3}o&4096&&(t.flags&=-4097)}function pS(t,o,s){ge=t,Jp(t)}function Jp(t,o,s){for(var u=(t.mode&1)!==0;ge!==null;){var f=ge,g=f.child;if(f.tag===22&&u){var C=f.memoizedState!==null||rs;if(!C){var D=f.alternate,M=D!==null&&D.memoizedState!==null||lt;D=rs;var z=lt;if(rs=C,(lt=M)&&!z)for(ge=f;ge!==null;)C=ge,M=C.child,C.tag===22&&C.memoizedState!==null?ng(f):M!==null?(M.return=C,ge=M):ng(f);for(;g!==null;)ge=g,Jp(g),g=g.sibling;ge=f,rs=D,lt=z}eg(t)}else(f.subtreeFlags&8772)!==0&&g!==null?(g.return=f,ge=g):eg(t)}}function eg(t){for(;ge!==null;){var o=ge;if((o.flags&8772)!==0){var s=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:lt||os(5,o);break;case 1:var u=o.stateNode;if(o.flags&4&&!lt)if(s===null)u.componentDidMount();else{var f=o.elementType===o.type?s.memoizedProps:Kt(o.type,s.memoizedProps);u.componentDidUpdate(f,s.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var g=o.updateQueue;g!==null&&tp(o,g,u);break;case 3:var C=o.updateQueue;if(C!==null){if(s=null,o.child!==null)switch(o.child.tag){case 5:s=o.child.stateNode;break;case 1:s=o.child.stateNode}tp(o,C,s)}break;case 5:var D=o.stateNode;if(s===null&&o.flags&4){s=D;var M=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":M.autoFocus&&s.focus();break;case"img":M.src&&(s.src=M.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var z=o.alternate;if(z!==null){var ne=z.memoizedState;if(ne!==null){var ie=ne.dehydrated;ie!==null&&xo(ie)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}lt||o.flags&512&&Xa(o)}catch(J){Ue(o,o.return,J)}}if(o===t){ge=null;break}if(s=o.sibling,s!==null){s.return=o.return,ge=s;break}ge=o.return}}function tg(t){for(;ge!==null;){var o=ge;if(o===t){ge=null;break}var s=o.sibling;if(s!==null){s.return=o.return,ge=s;break}ge=o.return}}function ng(t){for(;ge!==null;){var o=ge;try{switch(o.tag){case 0:case 11:case 15:var s=o.return;try{os(4,o)}catch(M){Ue(o,s,M)}break;case 1:var u=o.stateNode;if(typeof u.componentDidMount=="function"){var f=o.return;try{u.componentDidMount()}catch(M){Ue(o,f,M)}}var g=o.return;try{Xa(o)}catch(M){Ue(o,g,M)}break;case 5:var C=o.return;try{Xa(o)}catch(M){Ue(o,C,M)}}}catch(M){Ue(o,o.return,M)}if(o===t){ge=null;break}var D=o.sibling;if(D!==null){D.return=o.return,ge=D;break}ge=o.return}}var gS=Math.ceil,is=N.ReactCurrentDispatcher,Qa=N.ReactCurrentOwner,Ft=N.ReactCurrentBatchConfig,De=0,Je=null,Ke=null,rt=0,It=0,Hr=Nn(0),qe=0,Bo=null,lr=0,ss=0,Za=0,Wo=null,St=null,Ja=0,Ur=1/0,yn=null,ls=!1,eu=null,Vn=null,as=!1,zn=null,us=0,Go=0,tu=null,cs=-1,ds=0;function pt(){return(De&6)!==0?We():cs!==-1?cs:cs=We()}function Hn(t){return(t.mode&1)===0?1:(De&2)!==0&&rt!==0?rt&-rt:Q0.transition!==null?(ds===0&&(ds=Xd()),ds):(t=ke,t!==0||(t=window.event,t=t===void 0?16:rf(t.type)),t)}function Yt(t,o,s,u){if(50<Go)throw Go=0,tu=null,Error(r(185));mo(t,s,u),((De&2)===0||t!==Je)&&(t===Je&&((De&2)===0&&(ss|=s),qe===4&&Un(t,rt)),xt(t,u),s===1&&De===0&&(o.mode&1)===0&&(Ur=We()+500,ji&&An()))}function xt(t,o){var s=t.callbackNode;Qw(t,o);var u=Si(t,t===Je?rt:0);if(u===0)s!==null&&Wd(s),t.callbackNode=null,t.callbackPriority=0;else if(o=u&-u,t.callbackPriority!==o){if(s!=null&&Wd(s),o===1)t.tag===0?Y0(og.bind(null,t)):Uf(og.bind(null,t)),G0(function(){(De&6)===0&&An()}),s=null;else{switch(qd(u)){case 1:s=Nl;break;case 4:s=Gd;break;case 16:s=mi;break;case 536870912:s=Kd;break;default:s=mi}s=fg(s,rg.bind(null,t))}t.callbackPriority=o,t.callbackNode=s}}function rg(t,o){if(cs=-1,ds=0,(De&6)!==0)throw Error(r(327));var s=t.callbackNode;if(Br()&&t.callbackNode!==s)return null;var u=Si(t,t===Je?rt:0);if(u===0)return null;if((u&30)!==0||(u&t.expiredLanes)!==0||o)o=fs(t,u);else{o=u;var f=De;De|=2;var g=sg();(Je!==t||rt!==o)&&(yn=null,Ur=We()+500,ur(t,o));do try{vS();break}catch(D){ig(t,D)}while(!0);wa(),is.current=g,De=f,Ke!==null?o=0:(Je=null,rt=0,o=qe)}if(o!==0){if(o===2&&(f=bl(t),f!==0&&(u=f,o=nu(t,f))),o===1)throw s=Bo,ur(t,0),Un(t,u),xt(t,We()),s;if(o===6)Un(t,u);else{if(f=t.current.alternate,(u&30)===0&&!hS(f)&&(o=fs(t,u),o===2&&(g=bl(t),g!==0&&(u=g,o=nu(t,g))),o===1))throw s=Bo,ur(t,0),Un(t,u),xt(t,We()),s;switch(t.finishedWork=f,t.finishedLanes=u,o){case 0:case 1:throw Error(r(345));case 2:cr(t,St,yn);break;case 3:if(Un(t,u),(u&130023424)===u&&(o=Ja+500-We(),10<o)){if(Si(t,0)!==0)break;if(f=t.suspendedLanes,(f&u)!==u){pt(),t.pingedLanes|=t.suspendedLanes&f;break}t.timeoutHandle=aa(cr.bind(null,t,St,yn),o);break}cr(t,St,yn);break;case 4:if(Un(t,u),(u&4194240)===u)break;for(o=t.eventTimes,f=-1;0<u;){var C=31-Bt(u);g=1<<C,C=o[C],C>f&&(f=C),u&=~g}if(u=f,u=We()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*gS(u/1960))-u,10<u){t.timeoutHandle=aa(cr.bind(null,t,St,yn),u);break}cr(t,St,yn);break;case 5:cr(t,St,yn);break;default:throw Error(r(329))}}}return xt(t,We()),t.callbackNode===s?rg.bind(null,t):null}function nu(t,o){var s=Wo;return t.current.memoizedState.isDehydrated&&(ur(t,o).flags|=256),t=fs(t,o),t!==2&&(o=St,St=s,o!==null&&ru(o)),t}function ru(t){St===null?St=t:St.push.apply(St,t)}function hS(t){for(var o=t;;){if(o.flags&16384){var s=o.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var u=0;u<s.length;u++){var f=s[u],g=f.getSnapshot;f=f.value;try{if(!Wt(g(),f))return!1}catch{return!1}}}if(s=o.child,o.subtreeFlags&16384&&s!==null)s.return=o,o=s;else{if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Un(t,o){for(o&=~Za,o&=~ss,t.suspendedLanes|=o,t.pingedLanes&=~o,t=t.expirationTimes;0<o;){var s=31-Bt(o),u=1<<s;t[s]=-1,o&=~u}}function og(t){if((De&6)!==0)throw Error(r(327));Br();var o=Si(t,0);if((o&1)===0)return xt(t,We()),null;var s=fs(t,o);if(t.tag!==0&&s===2){var u=bl(t);u!==0&&(o=u,s=nu(t,u))}if(s===1)throw s=Bo,ur(t,0),Un(t,o),xt(t,We()),s;if(s===6)throw Error(r(345));return t.finishedWork=t.current.alternate,t.finishedLanes=o,cr(t,St,yn),xt(t,We()),null}function ou(t,o){var s=De;De|=1;try{return t(o)}finally{De=s,De===0&&(Ur=We()+500,ji&&An())}}function ar(t){zn!==null&&zn.tag===0&&(De&6)===0&&Br();var o=De;De|=1;var s=Ft.transition,u=ke;try{if(Ft.transition=null,ke=1,t)return t()}finally{ke=u,Ft.transition=s,De=o,(De&6)===0&&An()}}function iu(){It=Hr.current,Le(Hr)}function ur(t,o){t.finishedWork=null,t.finishedLanes=0;var s=t.timeoutHandle;if(s!==-1&&(t.timeoutHandle=-1,W0(s)),Ke!==null)for(s=Ke.return;s!==null;){var u=s;switch(ga(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Li();break;case 3:jr(),Le(vt),Le(ot),Ta();break;case 5:Pa(u);break;case 4:jr();break;case 13:Le(ze);break;case 19:Le(ze);break;case 10:Sa(u.type._context);break;case 22:case 23:iu()}s=s.return}if(Je=t,Ke=t=Bn(t.current,null),rt=It=o,qe=0,Bo=null,Za=ss=lr=0,St=Wo=null,or!==null){for(o=0;o<or.length;o++)if(s=or[o],u=s.interleaved,u!==null){s.interleaved=null;var f=u.next,g=s.pending;if(g!==null){var C=g.next;g.next=f,u.next=C}s.pending=u}or=null}return t}function ig(t,o){do{var s=Ke;try{if(wa(),qi.current=Ji,Yi){for(var u=He.memoizedState;u!==null;){var f=u.queue;f!==null&&(f.pending=null),u=u.next}Yi=!1}if(sr=0,Ze=Xe=He=null,Fo=!1,jo=0,Qa.current=null,s===null||s.return===null){qe=1,Bo=o,Ke=null;break}e:{var g=t,C=s.return,D=s,M=o;if(o=rt,D.flags|=32768,M!==null&&typeof M=="object"&&typeof M.then=="function"){var z=M,ne=D,ie=ne.tag;if((ne.mode&1)===0&&(ie===0||ie===11||ie===15)){var J=ne.alternate;J?(ne.updateQueue=J.updateQueue,ne.memoizedState=J.memoizedState,ne.lanes=J.lanes):(ne.updateQueue=null,ne.memoizedState=null)}var fe=Op(C);if(fe!==null){fe.flags&=-257,Mp(fe,C,D,g,o),fe.mode&1&&Dp(g,z,o),o=fe,M=z;var me=o.updateQueue;if(me===null){var ve=new Set;ve.add(M),o.updateQueue=ve}else me.add(M);break e}else{if((o&1)===0){Dp(g,z,o),su();break e}M=Error(r(426))}}else if(je&&D.mode&1){var Ge=Op(C);if(Ge!==null){(Ge.flags&65536)===0&&(Ge.flags|=256),Mp(Ge,C,D,g,o),va(Vr(M,D));break e}}g=M=Vr(M,D),qe!==4&&(qe=2),Wo===null?Wo=[g]:Wo.push(g),g=C;do{switch(g.tag){case 3:g.flags|=65536,o&=-o,g.lanes|=o;var j=Tp(g,M,o);ep(g,j);break e;case 1:D=M;var k=g.type,V=g.stateNode;if((g.flags&128)===0&&(typeof k.getDerivedStateFromError=="function"||V!==null&&typeof V.componentDidCatch=="function"&&(Vn===null||!Vn.has(V)))){g.flags|=65536,o&=-o,g.lanes|=o;var le=Ip(g,D,o);ep(g,le);break e}}g=g.return}while(g!==null)}ag(s)}catch(ye){o=ye,Ke===s&&s!==null&&(Ke=s=s.return);continue}break}while(!0)}function sg(){var t=is.current;return is.current=Ji,t===null?Ji:t}function su(){(qe===0||qe===3||qe===2)&&(qe=4),Je===null||(lr&268435455)===0&&(ss&268435455)===0||Un(Je,rt)}function fs(t,o){var s=De;De|=2;var u=sg();(Je!==t||rt!==o)&&(yn=null,ur(t,o));do try{mS();break}catch(f){ig(t,f)}while(!0);if(wa(),De=s,is.current=u,Ke!==null)throw Error(r(261));return Je=null,rt=0,qe}function mS(){for(;Ke!==null;)lg(Ke)}function vS(){for(;Ke!==null&&!Hw();)lg(Ke)}function lg(t){var o=dg(t.alternate,t,It);t.memoizedProps=t.pendingProps,o===null?ag(t):Ke=o,Qa.current=null}function ag(t){var o=t;do{var s=o.alternate;if(t=o.return,(o.flags&32768)===0){if(s=uS(s,o,It),s!==null){Ke=s;return}}else{if(s=cS(s,o),s!==null){s.flags&=32767,Ke=s;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{qe=6,Ke=null;return}}if(o=o.sibling,o!==null){Ke=o;return}Ke=o=t}while(o!==null);qe===0&&(qe=5)}function cr(t,o,s){var u=ke,f=Ft.transition;try{Ft.transition=null,ke=1,yS(t,o,s,u)}finally{Ft.transition=f,ke=u}return null}function yS(t,o,s,u){do Br();while(zn!==null);if((De&6)!==0)throw Error(r(327));s=t.finishedWork;var f=t.finishedLanes;if(s===null)return null;if(t.finishedWork=null,t.finishedLanes=0,s===t.current)throw Error(r(177));t.callbackNode=null,t.callbackPriority=0;var g=s.lanes|s.childLanes;if(Zw(t,g),t===Je&&(Ke=Je=null,rt=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||as||(as=!0,fg(mi,function(){return Br(),null})),g=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||g){g=Ft.transition,Ft.transition=null;var C=ke;ke=1;var D=De;De|=4,Qa.current=null,fS(t,s),Zp(s,t),F0(sa),Ei=!!ia,sa=ia=null,t.current=s,pS(s),Uw(),De=D,ke=C,Ft.transition=g}else t.current=s;if(as&&(as=!1,zn=t,us=f),g=t.pendingLanes,g===0&&(Vn=null),Gw(s.stateNode),xt(t,We()),o!==null)for(u=t.onRecoverableError,s=0;s<o.length;s++)f=o[s],u(f.value,{componentStack:f.stack,digest:f.digest});if(ls)throw ls=!1,t=eu,eu=null,t;return(us&1)!==0&&t.tag!==0&&Br(),g=t.pendingLanes,(g&1)!==0?t===tu?Go++:(Go=0,tu=t):Go=0,An(),null}function Br(){if(zn!==null){var t=qd(us),o=Ft.transition,s=ke;try{if(Ft.transition=null,ke=16>t?16:t,zn===null)var u=!1;else{if(t=zn,zn=null,us=0,(De&6)!==0)throw Error(r(331));var f=De;for(De|=4,ge=t.current;ge!==null;){var g=ge,C=g.child;if((ge.flags&16)!==0){var D=g.deletions;if(D!==null){for(var M=0;M<D.length;M++){var z=D[M];for(ge=z;ge!==null;){var ne=ge;switch(ne.tag){case 0:case 11:case 15:Uo(8,ne,g)}var ie=ne.child;if(ie!==null)ie.return=ne,ge=ie;else for(;ge!==null;){ne=ge;var J=ne.sibling,fe=ne.return;if(Kp(ne),ne===z){ge=null;break}if(J!==null){J.return=fe,ge=J;break}ge=fe}}}var me=g.alternate;if(me!==null){var ve=me.child;if(ve!==null){me.child=null;do{var Ge=ve.sibling;ve.sibling=null,ve=Ge}while(ve!==null)}}ge=g}}if((g.subtreeFlags&2064)!==0&&C!==null)C.return=g,ge=C;else e:for(;ge!==null;){if(g=ge,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:Uo(9,g,g.return)}var j=g.sibling;if(j!==null){j.return=g.return,ge=j;break e}ge=g.return}}var k=t.current;for(ge=k;ge!==null;){C=ge;var V=C.child;if((C.subtreeFlags&2064)!==0&&V!==null)V.return=C,ge=V;else e:for(C=k;ge!==null;){if(D=ge,(D.flags&2048)!==0)try{switch(D.tag){case 0:case 11:case 15:os(9,D)}}catch(ye){Ue(D,D.return,ye)}if(D===C){ge=null;break e}var le=D.sibling;if(le!==null){le.return=D.return,ge=le;break e}ge=D.return}}if(De=f,An(),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(vi,t)}catch{}u=!0}return u}finally{ke=s,Ft.transition=o}}return!1}function ug(t,o,s){o=Vr(s,o),o=Tp(t,o,1),t=Fn(t,o,1),o=pt(),t!==null&&(mo(t,1,o),xt(t,o))}function Ue(t,o,s){if(t.tag===3)ug(t,t,s);else for(;o!==null;){if(o.tag===3){ug(o,t,s);break}else if(o.tag===1){var u=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Vn===null||!Vn.has(u))){t=Vr(s,t),t=Ip(o,t,1),o=Fn(o,t,1),t=pt(),o!==null&&(mo(o,1,t),xt(o,t));break}}o=o.return}}function wS(t,o,s){var u=t.pingCache;u!==null&&u.delete(o),o=pt(),t.pingedLanes|=t.suspendedLanes&s,Je===t&&(rt&s)===s&&(qe===4||qe===3&&(rt&130023424)===rt&&500>We()-Ja?ur(t,0):Za|=s),xt(t,o)}function cg(t,o){o===0&&((t.mode&1)===0?o=1:(o=wi,wi<<=1,(wi&130023424)===0&&(wi=4194304)));var s=pt();t=hn(t,o),t!==null&&(mo(t,o,s),xt(t,s))}function SS(t){var o=t.memoizedState,s=0;o!==null&&(s=o.retryLane),cg(t,s)}function xS(t,o){var s=0;switch(t.tag){case 13:var u=t.stateNode,f=t.memoizedState;f!==null&&(s=f.retryLane);break;case 19:u=t.stateNode;break;default:throw Error(r(314))}u!==null&&u.delete(o),cg(t,s)}var dg;dg=function(t,o,s){if(t!==null)if(t.memoizedProps!==o.pendingProps||vt.current)wt=!0;else{if((t.lanes&s)===0&&(o.flags&128)===0)return wt=!1,aS(t,o,s);wt=(t.flags&131072)!==0}else wt=!1,je&&(o.flags&1048576)!==0&&Bf(o,zi,o.index);switch(o.lanes=0,o.tag){case 2:var u=o.type;ns(t,o),t=o.pendingProps;var f=kr(o,ot.current);Fr(o,s),f=Oa(null,o,u,t,f,s);var g=Ma();return o.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,yt(u)?(g=!0,Fi(o)):g=!1,o.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,Ea(o),f.updater=es,o.stateNode=f,f._reactInternals=o,La(o,u,t,s),o=za(null,o,u,!0,g,s)):(o.tag=0,je&&g&&pa(o),ft(null,o,f,s),o=o.child),o;case 16:u=o.elementType;e:{switch(ns(t,o),t=o.pendingProps,f=u._init,u=f(u._payload),o.type=u,f=o.tag=ES(u),t=Kt(u,t),f){case 0:o=Va(null,o,u,t,s);break e;case 1:o=Lp(null,o,u,t,s);break e;case 11:o=kp(null,o,u,t,s);break e;case 14:o=$p(null,o,u,Kt(u.type,t),s);break e}throw Error(r(306,u,""))}return o;case 0:return u=o.type,f=o.pendingProps,f=o.elementType===u?f:Kt(u,f),Va(t,o,u,f,s);case 1:return u=o.type,f=o.pendingProps,f=o.elementType===u?f:Kt(u,f),Lp(t,o,u,f,s);case 3:e:{if(Fp(o),t===null)throw Error(r(387));u=o.pendingProps,g=o.memoizedState,f=g.element,Jf(t,o),Ki(o,u,null,s);var C=o.memoizedState;if(u=C.element,g.isDehydrated)if(g={element:u,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},o.updateQueue.baseState=g,o.memoizedState=g,o.flags&256){f=Vr(Error(r(423)),o),o=jp(t,o,u,s,f);break e}else if(u!==f){f=Vr(Error(r(424)),o),o=jp(t,o,u,s,f);break e}else for(Tt=$n(o.stateNode.containerInfo.firstChild),_t=o,je=!0,Gt=null,s=Qf(o,null,u,s),o.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(br(),u===f){o=vn(t,o,s);break e}ft(t,o,u,s)}o=o.child}return o;case 5:return np(o),t===null&&ma(o),u=o.type,f=o.pendingProps,g=t!==null?t.memoizedProps:null,C=f.children,la(u,f)?C=null:g!==null&&la(u,g)&&(o.flags|=32),Ap(t,o),ft(t,o,C,s),o.child;case 6:return t===null&&ma(o),null;case 13:return Vp(t,o,s);case 4:return Ra(o,o.stateNode.containerInfo),u=o.pendingProps,t===null?o.child=Ar(o,null,u,s):ft(t,o,u,s),o.child;case 11:return u=o.type,f=o.pendingProps,f=o.elementType===u?f:Kt(u,f),kp(t,o,u,f,s);case 7:return ft(t,o,o.pendingProps,s),o.child;case 8:return ft(t,o,o.pendingProps.children,s),o.child;case 12:return ft(t,o,o.pendingProps.children,s),o.child;case 10:e:{if(u=o.type._context,f=o.pendingProps,g=o.memoizedProps,C=f.value,be(Bi,u._currentValue),u._currentValue=C,g!==null)if(Wt(g.value,C)){if(g.children===f.children&&!vt.current){o=vn(t,o,s);break e}}else for(g=o.child,g!==null&&(g.return=o);g!==null;){var D=g.dependencies;if(D!==null){C=g.child;for(var M=D.firstContext;M!==null;){if(M.context===u){if(g.tag===1){M=mn(-1,s&-s),M.tag=2;var z=g.updateQueue;if(z!==null){z=z.shared;var ne=z.pending;ne===null?M.next=M:(M.next=ne.next,ne.next=M),z.pending=M}}g.lanes|=s,M=g.alternate,M!==null&&(M.lanes|=s),xa(g.return,s,o),D.lanes|=s;break}M=M.next}}else if(g.tag===10)C=g.type===o.type?null:g.child;else if(g.tag===18){if(C=g.return,C===null)throw Error(r(341));C.lanes|=s,D=C.alternate,D!==null&&(D.lanes|=s),xa(C,s,o),C=g.sibling}else C=g.child;if(C!==null)C.return=g;else for(C=g;C!==null;){if(C===o){C=null;break}if(g=C.sibling,g!==null){g.return=C.return,C=g;break}C=C.return}g=C}ft(t,o,f.children,s),o=o.child}return o;case 9:return f=o.type,u=o.pendingProps.children,Fr(o,s),f=At(f),u=u(f),o.flags|=1,ft(t,o,u,s),o.child;case 14:return u=o.type,f=Kt(u,o.pendingProps),f=Kt(u.type,f),$p(t,o,u,f,s);case 15:return Np(t,o,o.type,o.pendingProps,s);case 17:return u=o.type,f=o.pendingProps,f=o.elementType===u?f:Kt(u,f),ns(t,o),o.tag=1,yt(u)?(t=!0,Fi(o)):t=!1,Fr(o,s),Pp(o,u,f),La(o,u,f,s),za(null,o,u,!0,t,s);case 19:return Hp(t,o,s);case 22:return bp(t,o,s)}throw Error(r(156,o.tag))};function fg(t,o){return Bd(t,o)}function CS(t,o,s,u){this.tag=t,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jt(t,o,s,u){return new CS(t,o,s,u)}function lu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ES(t){if(typeof t=="function")return lu(t)?1:0;if(t!=null){if(t=t.$$typeof,t===re)return 11;if(t===ue)return 14}return 2}function Bn(t,o){var s=t.alternate;return s===null?(s=jt(t.tag,o,t.key,t.mode),s.elementType=t.elementType,s.type=t.type,s.stateNode=t.stateNode,s.alternate=t,t.alternate=s):(s.pendingProps=o,s.type=t.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=t.flags&14680064,s.childLanes=t.childLanes,s.lanes=t.lanes,s.child=t.child,s.memoizedProps=t.memoizedProps,s.memoizedState=t.memoizedState,s.updateQueue=t.updateQueue,o=t.dependencies,s.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},s.sibling=t.sibling,s.index=t.index,s.ref=t.ref,s}function ps(t,o,s,u,f,g){var C=2;if(u=t,typeof t=="function")lu(t)&&(C=1);else if(typeof t=="string")C=5;else e:switch(t){case b:return dr(s.children,f,g,o);case A:C=8,f|=8;break;case X:return t=jt(12,s,o,f|2),t.elementType=X,t.lanes=g,t;case Z:return t=jt(13,s,o,f),t.elementType=Z,t.lanes=g,t;case W:return t=jt(19,s,o,f),t.elementType=W,t.lanes=g,t;case q:return gs(s,f,g,o);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Q:C=10;break e;case ee:C=9;break e;case re:C=11;break e;case ue:C=14;break e;case B:C=16,u=null;break e}throw Error(r(130,t==null?t:typeof t,""))}return o=jt(C,s,o,f),o.elementType=t,o.type=u,o.lanes=g,o}function dr(t,o,s,u){return t=jt(7,t,u,o),t.lanes=s,t}function gs(t,o,s,u){return t=jt(22,t,u,o),t.elementType=q,t.lanes=s,t.stateNode={isHidden:!1},t}function au(t,o,s){return t=jt(6,t,null,o),t.lanes=s,t}function uu(t,o,s){return o=jt(4,t.children!==null?t.children:[],t.key,o),o.lanes=s,o.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},o}function RS(t,o,s,u,f){this.tag=o,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Al(0),this.expirationTimes=Al(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Al(0),this.identifierPrefix=u,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function cu(t,o,s,u,f,g,C,D,M){return t=new RS(t,o,s,D,M),o===1?(o=1,g===!0&&(o|=8)):o=0,g=jt(3,null,null,o),t.current=g,g.stateNode=t,g.memoizedState={element:u,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ea(g),t}function PS(t,o,s){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:U,key:u==null?null:""+u,children:t,containerInfo:o,implementation:s}}function pg(t){if(!t)return bn;t=t._reactInternals;e:{if(Jn(t)!==t||t.tag!==1)throw Error(r(170));var o=t;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(yt(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(r(171))}if(t.tag===1){var s=t.type;if(yt(s))return zf(t,s,o)}return o}function gg(t,o,s,u,f,g,C,D,M){return t=cu(s,u,!0,t,f,g,C,D,M),t.context=pg(null),s=t.current,u=pt(),f=Hn(s),g=mn(u,f),g.callback=o??null,Fn(s,g,f),t.current.lanes=f,mo(t,f,u),xt(t,u),t}function hs(t,o,s,u){var f=o.current,g=pt(),C=Hn(f);return s=pg(s),o.context===null?o.context=s:o.pendingContext=s,o=mn(g,C),o.payload={element:t},u=u===void 0?null:u,u!==null&&(o.callback=u),t=Fn(f,o,C),t!==null&&(Yt(t,f,C,g),Gi(t,f,C)),C}function ms(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function hg(t,o){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var s=t.retryLane;t.retryLane=s!==0&&s<o?s:o}}function du(t,o){hg(t,o),(t=t.alternate)&&hg(t,o)}function _S(){return null}var mg=typeof reportError=="function"?reportError:function(t){console.error(t)};function fu(t){this._internalRoot=t}vs.prototype.render=fu.prototype.render=function(t){var o=this._internalRoot;if(o===null)throw Error(r(409));hs(t,o,null,null)},vs.prototype.unmount=fu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var o=t.containerInfo;ar(function(){hs(null,t,null,null)}),o[dn]=null}};function vs(t){this._internalRoot=t}vs.prototype.unstable_scheduleHydration=function(t){if(t){var o=Zd();t={blockedOn:null,target:t,priority:o};for(var s=0;s<On.length&&o!==0&&o<On[s].priority;s++);On.splice(s,0,t),s===0&&tf(t)}};function pu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function ys(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function vg(){}function TS(t,o,s,u,f){if(f){if(typeof u=="function"){var g=u;u=function(){var z=ms(C);g.call(z)}}var C=gg(o,u,t,0,null,!1,!1,"",vg);return t._reactRootContainer=C,t[dn]=C.current,Oo(t.nodeType===8?t.parentNode:t),ar(),C}for(;f=t.lastChild;)t.removeChild(f);if(typeof u=="function"){var D=u;u=function(){var z=ms(M);D.call(z)}}var M=cu(t,0,!1,null,null,!1,!1,"",vg);return t._reactRootContainer=M,t[dn]=M.current,Oo(t.nodeType===8?t.parentNode:t),ar(function(){hs(o,M,s,u)}),M}function ws(t,o,s,u,f){var g=s._reactRootContainer;if(g){var C=g;if(typeof f=="function"){var D=f;f=function(){var M=ms(C);D.call(M)}}hs(o,C,t,f)}else C=TS(s,o,t,f,u);return ms(C)}Yd=function(t){switch(t.tag){case 3:var o=t.stateNode;if(o.current.memoizedState.isDehydrated){var s=ho(o.pendingLanes);s!==0&&(Ll(o,s|1),xt(o,We()),(De&6)===0&&(Ur=We()+500,An()))}break;case 13:ar(function(){var u=hn(t,1);if(u!==null){var f=pt();Yt(u,t,1,f)}}),du(t,1)}},Fl=function(t){if(t.tag===13){var o=hn(t,134217728);if(o!==null){var s=pt();Yt(o,t,134217728,s)}du(t,134217728)}},Qd=function(t){if(t.tag===13){var o=Hn(t),s=hn(t,o);if(s!==null){var u=pt();Yt(s,t,o,u)}du(t,o)}},Zd=function(){return ke},Jd=function(t,o){var s=ke;try{return ke=t,o()}finally{ke=s}},Ol=function(t,o,s){switch(o){case"input":if($t(t,s),o=s.name,s.type==="radio"&&o!=null){for(s=t;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<s.length;o++){var u=s[o];if(u!==t&&u.form===t.form){var f=Ai(u);if(!f)throw Error(r(90));Pe(u),$t(u,f)}}}break;case"textarea":Id(t,s);break;case"select":o=s.value,o!=null&&_n(t,!!s.multiple,o,!1)}},Ld=ou,Fd=ar;var IS={usingClientEntryPoint:!1,Events:[$o,Or,Ai,bd,Ad,ou]},Ko={findFiberByHostInstance:er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},DS={bundleType:Ko.bundleType,version:Ko.version,rendererPackageName:Ko.rendererPackageName,rendererConfig:Ko.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:N.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Hd(t),t===null?null:t.stateNode},findFiberByHostInstance:Ko.findFiberByHostInstance||_S,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ss=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ss.isDisabled&&Ss.supportsFiber)try{vi=Ss.inject(DS),tn=Ss}catch{}}return Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=IS,Ct.createPortal=function(t,o){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!pu(o))throw Error(r(200));return PS(t,o,null,s)},Ct.createRoot=function(t,o){if(!pu(t))throw Error(r(299));var s=!1,u="",f=mg;return o!=null&&(o.unstable_strictMode===!0&&(s=!0),o.identifierPrefix!==void 0&&(u=o.identifierPrefix),o.onRecoverableError!==void 0&&(f=o.onRecoverableError)),o=cu(t,1,!1,null,null,s,!1,u,f),t[dn]=o.current,Oo(t.nodeType===8?t.parentNode:t),new fu(o)},Ct.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var o=t._reactInternals;if(o===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=Hd(o),t=t===null?null:t.stateNode,t},Ct.flushSync=function(t){return ar(t)},Ct.hydrate=function(t,o,s){if(!ys(o))throw Error(r(200));return ws(null,t,o,!0,s)},Ct.hydrateRoot=function(t,o,s){if(!pu(t))throw Error(r(405));var u=s!=null&&s.hydratedSources||null,f=!1,g="",C=mg;if(s!=null&&(s.unstable_strictMode===!0&&(f=!0),s.identifierPrefix!==void 0&&(g=s.identifierPrefix),s.onRecoverableError!==void 0&&(C=s.onRecoverableError)),o=gg(o,null,t,1,s??null,f,!1,g,C),t[dn]=o.current,Oo(t),u)for(t=0;t<u.length;t++)s=u[t],f=s._getVersion,f=f(s._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[s,f]:o.mutableSourceEagerHydrationData.push(s,f);return new vs(o)},Ct.render=function(t,o,s){if(!ys(o))throw Error(r(200));return ws(null,t,o,!1,s)},Ct.unmountComponentAtNode=function(t){if(!ys(t))throw Error(r(40));return t._reactRootContainer?(ar(function(){ws(null,null,t,!1,function(){t._reactRootContainer=null,t[dn]=null})}),!0):!1},Ct.unstable_batchedUpdates=ou,Ct.unstable_renderSubtreeIntoContainer=function(t,o,s,u){if(!ys(s))throw Error(r(200));if(t==null||t._reactInternals===void 0)throw Error(r(38));return ws(t,o,s,!1,u)},Ct.version="18.3.1-next-f1338f8080-20240426",Ct}var Pg;function qh(){if(Pg)return mu.exports;Pg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),mu.exports=LS(),mu.exports}var _g;function FS(){if(_g)return xs;_g=1;var e=qh();return xs.createRoot=e.createRoot,xs.hydrateRoot=e.hydrateRoot,xs}var jS=FS();const VS=ro(jS);function Se(e,n,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),r===!1||!a.defaultPrevented)return n?.(a)}}function Tg(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function Js(...e){return n=>{let r=!1;const i=e.map(a=>{const l=Tg(a,n);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let a=0;a<i.length;a++){const l=i[a];typeof l=="function"?l():Tg(e[a],null)}}}}function Qe(...e){return p.useCallback(Js(...e),e)}function zS(e,n){const r=p.createContext(n),i=l=>{const{children:c,...d}=l,h=p.useMemo(()=>d,Object.values(d));return E.jsx(r.Provider,{value:h,children:c})};i.displayName=e+"Provider";function a(l){const c=p.useContext(r);if(c)return c;if(n!==void 0)return n;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[i,a]}function Zn(e,n=[]){let r=[];function i(l,c){const d=p.createContext(c),h=r.length;r=[...r,c];const v=m=>{const{scope:S,children:y,...P}=m,x=S?.[e]?.[h]||d,R=p.useMemo(()=>P,Object.values(P));return E.jsx(x.Provider,{value:R,children:y})};v.displayName=l+"Provider";function w(m,S){const y=S?.[e]?.[h]||d,P=p.useContext(y);if(P)return P;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${l}\``)}return[v,w]}const a=()=>{const l=r.map(c=>p.createContext(c));return function(d){const h=d?.[e]||l;return p.useMemo(()=>({[`__scope${e}`]:{...d,[e]:h}}),[d,h])}};return a.scopeName=e,[i,HS(a,...n)]}function HS(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const i=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(l){const c=i.reduce((d,{useScope:h,scopeName:v})=>{const m=h(l)[`__scope${v}`];return{...d,...m}},{});return p.useMemo(()=>({[`__scope${n.scopeName}`]:c}),[c])}};return r.scopeName=n.scopeName,r}var xn=globalThis?.document?p.useLayoutEffect:()=>{},US=Nc[" useId ".trim().toString()]||(()=>{}),BS=0;function Zr(e){const[n,r]=p.useState(US());return xn(()=>{r(i=>i??String(BS++))},[e]),e||(n?`radix-${n}`:"")}var WS=Nc[" useInsertionEffect ".trim().toString()]||xn;function el({prop:e,defaultProp:n,onChange:r=()=>{},caller:i}){const[a,l,c]=GS({defaultProp:n,onChange:r}),d=e!==void 0,h=d?e:a;{const w=p.useRef(e!==void 0);p.useEffect(()=>{const m=w.current;m!==d&&console.warn(`${i} is changing from ${m?"controlled":"uncontrolled"} to ${d?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),w.current=d},[d,i])}const v=p.useCallback(w=>{if(d){const m=KS(w)?w(e):w;m!==e&&c.current?.(m)}else l(w)},[d,e,l,c]);return[h,v]}function GS({defaultProp:e,onChange:n}){const[r,i]=p.useState(e),a=p.useRef(r),l=p.useRef(n);return WS(()=>{l.current=n},[n]),p.useEffect(()=>{a.current!==r&&(l.current?.(r),a.current=r)},[r,a]),[r,i,l]}function KS(e){return typeof e=="function"}var mr=qh();const Yh=ro(mr);function ni(e){const n=XS(e),r=p.forwardRef((i,a)=>{const{children:l,...c}=i,d=p.Children.toArray(l),h=d.find(YS);if(h){const v=h.props.children,w=d.map(m=>m===h?p.Children.count(v)>1?p.Children.only(null):p.isValidElement(v)?v.props.children:null:m);return E.jsx(n,{...c,ref:a,children:p.isValidElement(v)?p.cloneElement(v,void 0,w):null})}return E.jsx(n,{...c,ref:a,children:l})});return r.displayName=`${e}.Slot`,r}function XS(e){const n=p.forwardRef((r,i)=>{const{children:a,...l}=r;if(p.isValidElement(a)){const c=ZS(a),d=QS(l,a.props);return a.type!==p.Fragment&&(d.ref=i?Js(i,c):c),p.cloneElement(a,d)}return p.Children.count(a)>1?p.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var qS=Symbol("radix.slottable");function YS(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qS}function QS(e,n){const r={...n};for(const i in n){const a=e[i],l=n[i];/^on[A-Z]/.test(i)?a&&l?r[i]=(...d)=>{const h=l(...d);return a(...d),h}:a&&(r[i]=a):i==="style"?r[i]={...a,...l}:i==="className"&&(r[i]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function ZS(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var JS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$e=JS.reduce((e,n)=>{const r=ni(`Primitive.${n}`),i=p.forwardRef((a,l)=>{const{asChild:c,...d}=a,h=c?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(h,{...d,ref:l})});return i.displayName=`Primitive.${n}`,{...e,[n]:i}},{});function bc(e,n){e&&mr.flushSync(()=>e.dispatchEvent(n))}function Rt(e){const n=p.useRef(e);return p.useEffect(()=>{n.current=e}),p.useMemo(()=>(...r)=>n.current?.(...r),[])}function ex(e,n=globalThis?.document){const r=Rt(e);p.useEffect(()=>{const i=a=>{a.key==="Escape"&&r(a)};return n.addEventListener("keydown",i,{capture:!0}),()=>n.removeEventListener("keydown",i,{capture:!0})},[r,n])}var tx="DismissableLayer",tc="dismissableLayer.update",nx="dismissableLayer.pointerDownOutside",rx="dismissableLayer.focusOutside",Ig,Qh=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tl=p.forwardRef((e,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:c,onDismiss:d,...h}=e,v=p.useContext(Qh),[w,m]=p.useState(null),S=w?.ownerDocument??globalThis?.document,[,y]=p.useState({}),P=Qe(n,b=>m(b)),x=Array.from(v.layers),[R]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),T=x.indexOf(R),_=w?x.indexOf(w):-1,I=v.layersWithOutsidePointerEventsDisabled.size>0,N=_>=T,L=ix(b=>{const A=b.target,X=[...v.branches].some(Q=>Q.contains(A));!N||X||(a?.(b),c?.(b),b.defaultPrevented||d?.())},S),U=sx(b=>{const A=b.target;[...v.branches].some(Q=>Q.contains(A))||(l?.(b),c?.(b),b.defaultPrevented||d?.())},S);return ex(b=>{_===v.layers.size-1&&(i?.(b),!b.defaultPrevented&&d&&(b.preventDefault(),d()))},S),p.useEffect(()=>{if(w)return r&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(Ig=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(w)),v.layers.add(w),Dg(),()=>{r&&v.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=Ig)}},[w,S,r,v]),p.useEffect(()=>()=>{w&&(v.layers.delete(w),v.layersWithOutsidePointerEventsDisabled.delete(w),Dg())},[w,v]),p.useEffect(()=>{const b=()=>y({});return document.addEventListener(tc,b),()=>document.removeEventListener(tc,b)},[]),E.jsx($e.div,{...h,ref:P,style:{pointerEvents:I?N?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,U.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,U.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,L.onPointerDownCapture)})});tl.displayName=tx;var ox="DismissableLayerBranch",Zh=p.forwardRef((e,n)=>{const r=p.useContext(Qh),i=p.useRef(null),a=Qe(n,i);return p.useEffect(()=>{const l=i.current;if(l)return r.branches.add(l),()=>{r.branches.delete(l)}},[r.branches]),E.jsx($e.div,{...e,ref:a})});Zh.displayName=ox;function ix(e,n=globalThis?.document){const r=Rt(e),i=p.useRef(!1),a=p.useRef(()=>{});return p.useEffect(()=>{const l=d=>{if(d.target&&!i.current){let h=function(){Jh(nx,r,v,{discrete:!0})};const v={originalEvent:d};d.pointerType==="touch"?(n.removeEventListener("click",a.current),a.current=h,n.addEventListener("click",a.current,{once:!0})):h()}else n.removeEventListener("click",a.current);i.current=!1},c=window.setTimeout(()=>{n.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(c),n.removeEventListener("pointerdown",l),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}function sx(e,n=globalThis?.document){const r=Rt(e),i=p.useRef(!1);return p.useEffect(()=>{const a=l=>{l.target&&!i.current&&Jh(rx,r,{originalEvent:l},{discrete:!1})};return n.addEventListener("focusin",a),()=>n.removeEventListener("focusin",a)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Dg(){const e=new CustomEvent(tc);document.dispatchEvent(e)}function Jh(e,n,r,{discrete:i}){const a=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&a.addEventListener(e,n,{once:!0}),i?bc(a,l):a.dispatchEvent(l)}var lx=tl,ax=Zh,wu="focusScope.autoFocusOnMount",Su="focusScope.autoFocusOnUnmount",Og={bubbles:!1,cancelable:!0},ux="FocusScope",Ac=p.forwardRef((e,n)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:l,...c}=e,[d,h]=p.useState(null),v=Rt(a),w=Rt(l),m=p.useRef(null),S=Qe(n,x=>h(x)),y=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(i){let x=function(I){if(y.paused||!d)return;const N=I.target;d.contains(N)?m.current=N:Gn(m.current,{select:!0})},R=function(I){if(y.paused||!d)return;const N=I.relatedTarget;N!==null&&(d.contains(N)||Gn(m.current,{select:!0}))},T=function(I){if(document.activeElement===document.body)for(const L of I)L.removedNodes.length>0&&Gn(d)};document.addEventListener("focusin",x),document.addEventListener("focusout",R);const _=new MutationObserver(T);return d&&_.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",R),_.disconnect()}}},[i,d,y.paused]),p.useEffect(()=>{if(d){kg.add(y);const x=document.activeElement;if(!d.contains(x)){const T=new CustomEvent(wu,Og);d.addEventListener(wu,v),d.dispatchEvent(T),T.defaultPrevented||(cx(hx(em(d)),{select:!0}),document.activeElement===x&&Gn(d))}return()=>{d.removeEventListener(wu,v),setTimeout(()=>{const T=new CustomEvent(Su,Og);d.addEventListener(Su,w),d.dispatchEvent(T),T.defaultPrevented||Gn(x??document.body,{select:!0}),d.removeEventListener(Su,w),kg.remove(y)},0)}}},[d,v,w,y]);const P=p.useCallback(x=>{if(!r&&!i||y.paused)return;const R=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,T=document.activeElement;if(R&&T){const _=x.currentTarget,[I,N]=dx(_);I&&N?!x.shiftKey&&T===N?(x.preventDefault(),r&&Gn(I,{select:!0})):x.shiftKey&&T===I&&(x.preventDefault(),r&&Gn(N,{select:!0})):T===_&&x.preventDefault()}},[r,i,y.paused]);return E.jsx($e.div,{tabIndex:-1,...c,ref:S,onKeyDown:P})});Ac.displayName=ux;function cx(e,{select:n=!1}={}){const r=document.activeElement;for(const i of e)if(Gn(i,{select:n}),document.activeElement!==r)return}function dx(e){const n=em(e),r=Mg(n,e),i=Mg(n.reverse(),e);return[r,i]}function em(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function Mg(e,n){for(const r of e)if(!fx(r,{upTo:n}))return r}function fx(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function px(e){return e instanceof HTMLInputElement&&"select"in e}function Gn(e,{select:n=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&px(e)&&n&&e.select()}}var kg=gx();function gx(){let e=[];return{add(n){const r=e[0];n!==r&&r?.pause(),e=$g(e,n),e.unshift(n)},remove(n){e=$g(e,n),e[0]?.resume()}}}function $g(e,n){const r=[...e],i=r.indexOf(n);return i!==-1&&r.splice(i,1),r}function hx(e){return e.filter(n=>n.tagName!=="A")}var mx="Portal",nl=p.forwardRef((e,n)=>{const{container:r,...i}=e,[a,l]=p.useState(!1);xn(()=>l(!0),[]);const c=r||a&&globalThis?.document?.body;return c?Yh.createPortal(E.jsx($e.div,{...i,ref:n}),c):null});nl.displayName=mx;function vx(e,n){return p.useReducer((r,i)=>n[r][i]??r,e)}var Pn=e=>{const{present:n,children:r}=e,i=yx(n),a=typeof r=="function"?r({present:i.isPresent}):p.Children.only(r),l=Qe(i.ref,wx(a));return typeof r=="function"||i.isPresent?p.cloneElement(a,{ref:l}):null};Pn.displayName="Presence";function yx(e){const[n,r]=p.useState(),i=p.useRef(null),a=p.useRef(e),l=p.useRef("none"),c=e?"mounted":"unmounted",[d,h]=vx(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const v=Cs(i.current);l.current=d==="mounted"?v:"none"},[d]),xn(()=>{const v=i.current,w=a.current;if(w!==e){const S=l.current,y=Cs(v);e?h("MOUNT"):y==="none"||v?.display==="none"?h("UNMOUNT"):h(w&&S!==y?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,h]),xn(()=>{if(n){let v;const w=n.ownerDocument.defaultView??window,m=y=>{const x=Cs(i.current).includes(CSS.escape(y.animationName));if(y.target===n&&x&&(h("ANIMATION_END"),!a.current)){const R=n.style.animationFillMode;n.style.animationFillMode="forwards",v=w.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=R)})}},S=y=>{y.target===n&&(l.current=Cs(i.current))};return n.addEventListener("animationstart",S),n.addEventListener("animationcancel",m),n.addEventListener("animationend",m),()=>{w.clearTimeout(v),n.removeEventListener("animationstart",S),n.removeEventListener("animationcancel",m),n.removeEventListener("animationend",m)}}else h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:p.useCallback(v=>{i.current=v?getComputedStyle(v):null,r(v)},[])}}function Cs(e){return e?.animationName||"none"}function wx(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var xu=0;function tm(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ng()),document.body.insertAdjacentElement("beforeend",e[1]??Ng()),xu++,()=>{xu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),xu--}},[])}function Ng(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ut=function(){return ut=Object.assign||function(n){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(n[l]=r[l])}return n},ut.apply(this,arguments)};function Lc(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}function nm(e,n,r){if(r||arguments.length===2)for(var i=0,a=n.length,l;i<a;i++)(l||!(i in n))&&(l||(l=Array.prototype.slice.call(n,0,i)),l[i]=n[i]);return e.concat(l||Array.prototype.slice.call(n))}var Zo="right-scroll-bar-position",Jo="width-before-scroll-bar",Sx="with-scroll-bars-hidden",xx="--removed-body-scroll-bar-size";function Cu(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function Cx(e,n){var r=p.useState(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(i){var a=r.value;a!==i&&(r.value=i,r.callback(i,a))}}}})[0];return r.callback=n,r.facade}var Ex=typeof window<"u"?p.useLayoutEffect:p.useEffect,bg=new WeakMap;function rm(e,n){var r=Cx(null,function(i){return e.forEach(function(a){return Cu(a,i)})});return Ex(function(){var i=bg.get(r);if(i){var a=new Set(i),l=new Set(e),c=r.current;a.forEach(function(d){l.has(d)||Cu(d,null)}),l.forEach(function(d){a.has(d)||Cu(d,c)})}bg.set(r,e)},[e]),r}function Rx(e){return e}function Px(e,n){n===void 0&&(n=Rx);var r=[],i=!1,a={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(l){var c=n(l,i);return r.push(c),function(){r=r.filter(function(d){return d!==c})}},assignSyncMedium:function(l){for(i=!0;r.length;){var c=r;r=[],c.forEach(l)}r={push:function(d){return l(d)},filter:function(){return r}}},assignMedium:function(l){i=!0;var c=[];if(r.length){var d=r;r=[],d.forEach(l),c=r}var h=function(){var w=c;c=[],w.forEach(l)},v=function(){return Promise.resolve().then(h)};v(),r={push:function(w){c.push(w),v()},filter:function(w){return c=c.filter(w),r}}}};return a}function om(e){e===void 0&&(e={});var n=Px(null);return n.options=ut({async:!0,ssr:!1},e),n}var im=function(e){var n=e.sideCar,r=Lc(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw new Error("Sidecar medium not found");return p.createElement(i,ut({},r))};im.isSideCarExport=!0;function sm(e,n){return e.useMedium(n),im}var lm=om(),Eu=function(){},rl=p.forwardRef(function(e,n){var r=p.useRef(null),i=p.useState({onScrollCapture:Eu,onWheelCapture:Eu,onTouchMoveCapture:Eu}),a=i[0],l=i[1],c=e.forwardProps,d=e.children,h=e.className,v=e.removeScrollBar,w=e.enabled,m=e.shards,S=e.sideCar,y=e.noRelative,P=e.noIsolation,x=e.inert,R=e.allowPinchZoom,T=e.as,_=T===void 0?"div":T,I=e.gapMode,N=Lc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=S,U=rm([r,n]),b=ut(ut({},N),a);return p.createElement(p.Fragment,null,w&&p.createElement(L,{sideCar:lm,removeScrollBar:v,shards:m,noRelative:y,noIsolation:P,inert:x,setCallbacks:l,allowPinchZoom:!!R,lockRef:r,gapMode:I}),c?p.cloneElement(p.Children.only(d),ut(ut({},b),{ref:U})):p.createElement(_,ut({},b,{className:h,ref:U}),d))});rl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};rl.classNames={fullWidth:Jo,zeroRight:Zo};var _x=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Tx(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=_x();return n&&e.setAttribute("nonce",n),e}function Ix(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function Dx(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var Ox=function(){var e=0,n=null;return{add:function(r){e==0&&(n=Tx())&&(Ix(n,r),Dx(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},Mx=function(){var e=Ox();return function(n,r){p.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},Fc=function(){var e=Mx(),n=function(r){var i=r.styles,a=r.dynamic;return e(i,a),null};return n},kx={left:0,top:0,right:0,gap:0},Ru=function(e){return parseInt(e||"",10)||0},$x=function(e){var n=window.getComputedStyle(document.body),r=n[e==="padding"?"paddingLeft":"marginLeft"],i=n[e==="padding"?"paddingTop":"marginTop"],a=n[e==="padding"?"paddingRight":"marginRight"];return[Ru(r),Ru(i),Ru(a)]},Nx=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return kx;var n=$x(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,i-r+n[2]-n[0])}},bx=Fc(),Jr="data-scroll-locked",Ax=function(e,n,r,i){var a=e.left,l=e.top,c=e.right,d=e.gap;return r===void 0&&(r="margin"),`
  .`.concat(Sx,` {
   overflow: hidden `).concat(i,`;
   padding-right: `).concat(d,"px ").concat(i,`;
  }
  body[`).concat(Jr,`] {
    overflow: hidden `).concat(i,`;
    overscroll-behavior: contain;
    `).concat([n&&"position: relative ".concat(i,";"),r==="margin"&&`
    padding-left: `.concat(a,`px;
    padding-top: `).concat(l,`px;
    padding-right: `).concat(c,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(d,"px ").concat(i,`;
    `),r==="padding"&&"padding-right: ".concat(d,"px ").concat(i,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Zo,` {
    right: `).concat(d,"px ").concat(i,`;
  }
  
  .`).concat(Jo,` {
    margin-right: `).concat(d,"px ").concat(i,`;
  }
  
  .`).concat(Zo," .").concat(Zo,` {
    right: 0 `).concat(i,`;
  }
  
  .`).concat(Jo," .").concat(Jo,` {
    margin-right: 0 `).concat(i,`;
  }
  
  body[`).concat(Jr,`] {
    `).concat(xx,": ").concat(d,`px;
  }
`)},Ag=function(){var e=parseInt(document.body.getAttribute(Jr)||"0",10);return isFinite(e)?e:0},Lx=function(){p.useEffect(function(){return document.body.setAttribute(Jr,(Ag()+1).toString()),function(){var e=Ag()-1;e<=0?document.body.removeAttribute(Jr):document.body.setAttribute(Jr,e.toString())}},[])},am=function(e){var n=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i;Lx();var l=p.useMemo(function(){return Nx(a)},[a]);return p.createElement(bx,{styles:Ax(l,!n,a,r?"":"!important")})},nc=!1;if(typeof window<"u")try{var Es=Object.defineProperty({},"passive",{get:function(){return nc=!0,!0}});window.addEventListener("test",Es,Es),window.removeEventListener("test",Es,Es)}catch{nc=!1}var Wr=nc?{passive:!1}:!1,Fx=function(e){return e.tagName==="TEXTAREA"},um=function(e,n){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!Fx(e)&&r[n]==="visible")},jx=function(e){return um(e,"overflowY")},Vx=function(e){return um(e,"overflowX")},Lg=function(e,n){var r=n.ownerDocument,i=n;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var a=cm(e,i);if(a){var l=dm(e,i),c=l[1],d=l[2];if(c>d)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},zx=function(e){var n=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[n,r,i]},Hx=function(e){var n=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[n,r,i]},cm=function(e,n){return e==="v"?jx(n):Vx(n)},dm=function(e,n){return e==="v"?zx(n):Hx(n)},Ux=function(e,n){return e==="h"&&n==="rtl"?-1:1},Bx=function(e,n,r,i,a){var l=Ux(e,window.getComputedStyle(n).direction),c=l*i,d=r.target,h=n.contains(d),v=!1,w=c>0,m=0,S=0;do{if(!d)break;var y=dm(e,d),P=y[0],x=y[1],R=y[2],T=x-R-l*P;(P||T)&&cm(e,d)&&(m+=T,S+=P);var _=d.parentNode;d=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!h&&d!==document.body||h&&(n.contains(d)||n===d));return(w&&Math.abs(m)<1||!w&&Math.abs(S)<1)&&(v=!0),v},Rs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fg=function(e){return[e.deltaX,e.deltaY]},jg=function(e){return e&&"current"in e?e.current:e},Wx=function(e,n){return e[0]===n[0]&&e[1]===n[1]},Gx=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Kx=0,Gr=[];function Xx(e){var n=p.useRef([]),r=p.useRef([0,0]),i=p.useRef(),a=p.useState(Kx++)[0],l=p.useState(Fc)[0],c=p.useRef(e);p.useEffect(function(){c.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var x=nm([e.lockRef.current],(e.shards||[]).map(jg),!0).filter(Boolean);return x.forEach(function(R){return R.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),x.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var d=p.useCallback(function(x,R){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!c.current.allowPinchZoom;var T=Rs(x),_=r.current,I="deltaX"in x?x.deltaX:_[0]-T[0],N="deltaY"in x?x.deltaY:_[1]-T[1],L,U=x.target,b=Math.abs(I)>Math.abs(N)?"h":"v";if("touches"in x&&b==="h"&&U.type==="range")return!1;var A=Lg(b,U);if(!A)return!0;if(A?L=b:(L=b==="v"?"h":"v",A=Lg(b,U)),!A)return!1;if(!i.current&&"changedTouches"in x&&(I||N)&&(i.current=L),!L)return!0;var X=i.current||L;return Bx(X,R,x,X==="h"?I:N)},[]),h=p.useCallback(function(x){var R=x;if(!(!Gr.length||Gr[Gr.length-1]!==l)){var T="deltaY"in R?Fg(R):Rs(R),_=n.current.filter(function(L){return L.name===R.type&&(L.target===R.target||R.target===L.shadowParent)&&Wx(L.delta,T)})[0];if(_&&_.should){R.cancelable&&R.preventDefault();return}if(!_){var I=(c.current.shards||[]).map(jg).filter(Boolean).filter(function(L){return L.contains(R.target)}),N=I.length>0?d(R,I[0]):!c.current.noIsolation;N&&R.cancelable&&R.preventDefault()}}},[]),v=p.useCallback(function(x,R,T,_){var I={name:x,delta:R,target:T,should:_,shadowParent:qx(T)};n.current.push(I),setTimeout(function(){n.current=n.current.filter(function(N){return N!==I})},1)},[]),w=p.useCallback(function(x){r.current=Rs(x),i.current=void 0},[]),m=p.useCallback(function(x){v(x.type,Fg(x),x.target,d(x,e.lockRef.current))},[]),S=p.useCallback(function(x){v(x.type,Rs(x),x.target,d(x,e.lockRef.current))},[]);p.useEffect(function(){return Gr.push(l),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:S}),document.addEventListener("wheel",h,Wr),document.addEventListener("touchmove",h,Wr),document.addEventListener("touchstart",w,Wr),function(){Gr=Gr.filter(function(x){return x!==l}),document.removeEventListener("wheel",h,Wr),document.removeEventListener("touchmove",h,Wr),document.removeEventListener("touchstart",w,Wr)}},[]);var y=e.removeScrollBar,P=e.inert;return p.createElement(p.Fragment,null,P?p.createElement(l,{styles:Gx(a)}):null,y?p.createElement(am,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function qx(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const Yx=sm(lm,Xx);var jc=p.forwardRef(function(e,n){return p.createElement(rl,ut({},e,{ref:n,sideCar:Yx}))});jc.classNames=rl.classNames;var Qx=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Kr=new WeakMap,Ps=new WeakMap,_s={},Pu=0,fm=function(e){return e&&(e.host||fm(e.parentNode))},Zx=function(e,n){return n.map(function(r){if(e.contains(r))return r;var i=fm(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Jx=function(e,n,r,i){var a=Zx(n,Array.isArray(e)?e:[e]);_s[r]||(_s[r]=new WeakMap);var l=_s[r],c=[],d=new Set,h=new Set(a),v=function(m){!m||d.has(m)||(d.add(m),v(m.parentNode))};a.forEach(v);var w=function(m){!m||h.has(m)||Array.prototype.forEach.call(m.children,function(S){if(d.has(S))w(S);else try{var y=S.getAttribute(i),P=y!==null&&y!=="false",x=(Kr.get(S)||0)+1,R=(l.get(S)||0)+1;Kr.set(S,x),l.set(S,R),c.push(S),x===1&&P&&Ps.set(S,!0),R===1&&S.setAttribute(r,"true"),P||S.setAttribute(i,"true")}catch(T){console.error("aria-hidden: cannot operate on ",S,T)}})};return w(n),d.clear(),Pu++,function(){c.forEach(function(m){var S=Kr.get(m)-1,y=l.get(m)-1;Kr.set(m,S),l.set(m,y),S||(Ps.has(m)||m.removeAttribute(i),Ps.delete(m)),y||m.removeAttribute(r)}),Pu--,Pu||(Kr=new WeakMap,Kr=new WeakMap,Ps=new WeakMap,_s={})}},Vc=function(e,n,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=Qx(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live], script"))),Jx(i,a,r,"aria-hidden")):function(){return null}},ol="Dialog",[pm]=Zn(ol),[eC,en]=pm(ol),gm=e=>{const{__scopeDialog:n,children:r,open:i,defaultOpen:a,onOpenChange:l,modal:c=!0}=e,d=p.useRef(null),h=p.useRef(null),[v,w]=el({prop:i,defaultProp:a??!1,onChange:l,caller:ol});return E.jsx(eC,{scope:n,triggerRef:d,contentRef:h,contentId:Zr(),titleId:Zr(),descriptionId:Zr(),open:v,onOpenChange:w,onOpenToggle:p.useCallback(()=>w(m=>!m),[w]),modal:c,children:r})};gm.displayName=ol;var hm="DialogTrigger",mm=p.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,a=en(hm,r),l=Qe(n,a.triggerRef);return E.jsx($e.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Uc(a.open),...i,ref:l,onClick:Se(e.onClick,a.onOpenToggle)})});mm.displayName=hm;var zc="DialogPortal",[tC,vm]=pm(zc,{forceMount:void 0}),ym=e=>{const{__scopeDialog:n,forceMount:r,children:i,container:a}=e,l=en(zc,n);return E.jsx(tC,{scope:n,forceMount:r,children:p.Children.map(i,c=>E.jsx(Pn,{present:r||l.open,children:E.jsx(nl,{asChild:!0,container:a,children:c})}))})};ym.displayName=zc;var Hs="DialogOverlay",wm=p.forwardRef((e,n)=>{const r=vm(Hs,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,l=en(Hs,e.__scopeDialog);return l.modal?E.jsx(Pn,{present:i||l.open,children:E.jsx(rC,{...a,ref:n})}):null});wm.displayName=Hs;var nC=ni("DialogOverlay.RemoveScroll"),rC=p.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,a=en(Hs,r);return E.jsx(jc,{as:nC,allowPinchZoom:!0,shards:[a.contentRef],children:E.jsx($e.div,{"data-state":Uc(a.open),...i,ref:n,style:{pointerEvents:"auto",...i.style}})})}),pr="DialogContent",Sm=p.forwardRef((e,n)=>{const r=vm(pr,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,l=en(pr,e.__scopeDialog);return E.jsx(Pn,{present:i||l.open,children:l.modal?E.jsx(oC,{...a,ref:n}):E.jsx(iC,{...a,ref:n})})});Sm.displayName=pr;var oC=p.forwardRef((e,n)=>{const r=en(pr,e.__scopeDialog),i=p.useRef(null),a=Qe(n,r.contentRef,i);return p.useEffect(()=>{const l=i.current;if(l)return Vc(l)},[]),E.jsx(xm,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Se(e.onCloseAutoFocus,l=>{l.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Se(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0;(c.button===2||d)&&l.preventDefault()}),onFocusOutside:Se(e.onFocusOutside,l=>l.preventDefault())})}),iC=p.forwardRef((e,n)=>{const r=en(pr,e.__scopeDialog),i=p.useRef(!1),a=p.useRef(!1);return E.jsx(xm,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{e.onCloseAutoFocus?.(l),l.defaultPrevented||(i.current||r.triggerRef.current?.focus(),l.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:l=>{e.onInteractOutside?.(l),l.defaultPrevented||(i.current=!0,l.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const c=l.target;r.triggerRef.current?.contains(c)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&a.current&&l.preventDefault()}})}),xm=p.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:l,...c}=e,d=en(pr,r),h=p.useRef(null),v=Qe(n,h);return tm(),E.jsxs(E.Fragment,{children:[E.jsx(Ac,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:l,children:E.jsx(tl,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":Uc(d.open),...c,ref:v,onDismiss:()=>d.onOpenChange(!1)})}),E.jsxs(E.Fragment,{children:[E.jsx(lC,{titleId:d.titleId}),E.jsx(uC,{contentRef:h,descriptionId:d.descriptionId})]})]})}),Hc="DialogTitle",Cm=p.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,a=en(Hc,r);return E.jsx($e.h2,{id:a.titleId,...i,ref:n})});Cm.displayName=Hc;var Em="DialogDescription",sC=p.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,a=en(Em,r);return E.jsx($e.p,{id:a.descriptionId,...i,ref:n})});sC.displayName=Em;var Rm="DialogClose",Pm=p.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,a=en(Rm,r);return E.jsx($e.button,{type:"button",...i,ref:n,onClick:Se(e.onClick,()=>a.onOpenChange(!1))})});Pm.displayName=Rm;function Uc(e){return e?"open":"closed"}var _m="DialogTitleWarning",[UO,Tm]=zS(_m,{contentName:pr,titleName:Hc,docsSlug:"dialog"}),lC=({titleId:e})=>{const n=Tm(_m),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},aC="DialogDescriptionWarning",uC=({contentRef:e,descriptionId:n})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Tm(aC).contentName}}.`;return p.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");n&&a&&(document.getElementById(n)||console.warn(i))},[i,e,n]),null},Im=gm,cC=mm,dC=ym,Dm=wm,Om=Sm,Mm=Cm,rc=Pm;/**
   * table-core
   *
   * Copyright (c) TanStack
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE.md file in the root directory of this source tree.
   *
   * @license MIT
   */function Xn(e,n){return typeof e=="function"?e(n):e}function Mt(e,n){return r=>{n.setState(i=>({...i,[e]:Xn(r,i[e])}))}}function il(e){return e instanceof Function}function fC(e){return Array.isArray(e)&&e.every(n=>typeof n=="number")}function pC(e,n){const r=[],i=a=>{a.forEach(l=>{r.push(l);const c=n(l);c!=null&&c.length&&i(c)})};return i(e),r}function Ee(e,n,r){let i=[],a;return l=>{let c;r.key&&r.debug&&(c=Date.now());const d=e(l);if(!(d.length!==i.length||d.some((w,m)=>i[m]!==w)))return a;i=d;let v;if(r.key&&r.debug&&(v=Date.now()),a=n(...d),r==null||r.onChange==null||r.onChange(a),r.key&&r.debug&&r!=null&&r.debug()){const w=Math.round((Date.now()-c)*100)/100,m=Math.round((Date.now()-v)*100)/100,S=m/16,y=(P,x)=>{for(P=String(P);P.length<x;)P=" "+P;return P};console.info(`%c⏱ ${y(m,5)} /${y(w,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,r?.key)}return a}}function Re(e,n,r,i){return{debug:()=>{var a;return(a=e?.debugAll)!=null?a:e[n]},key:!1,onChange:i}}function gC(e,n,r,i){const a=()=>{var c;return(c=l.getValue())!=null?c:e.options.renderFallbackValue},l={id:`${n.id}_${r.id}`,row:n,column:r,getValue:()=>n.getValue(i),renderValue:a,getContext:Ee(()=>[e,r,n,l],(c,d,h,v)=>({table:c,column:d,row:h,cell:v,getValue:v.getValue,renderValue:v.renderValue}),Re(e.options,"debugCells"))};return e._features.forEach(c=>{c.createCell==null||c.createCell(l,r,n,e)},{}),l}function hC(e,n,r,i){var a,l;const d={...e._getDefaultColumnDef(),...n},h=d.accessorKey;let v=(a=(l=d.id)!=null?l:h?typeof String.prototype.replaceAll=="function"?h.replaceAll(".","_"):h.replace(/\./g,"_"):void 0)!=null?a:typeof d.header=="string"?d.header:void 0,w;if(d.accessorFn?w=d.accessorFn:h&&(h.includes(".")?w=S=>{let y=S;for(const x of h.split(".")){var P;y=(P=y)==null?void 0:P[x]}return y}:w=S=>S[d.accessorKey]),!v)throw new Error;let m={id:`${String(v)}`,accessorFn:w,parent:i,depth:r,columnDef:d,columns:[],getFlatColumns:Ee(()=>[!0],()=>{var S;return[m,...(S=m.columns)==null?void 0:S.flatMap(y=>y.getFlatColumns())]},Re(e.options,"debugColumns")),getLeafColumns:Ee(()=>[e._getOrderColumnsFn()],S=>{var y;if((y=m.columns)!=null&&y.length){let P=m.columns.flatMap(x=>x.getLeafColumns());return S(P)}return[m]},Re(e.options,"debugColumns"))};for(const S of e._features)S.createColumn==null||S.createColumn(m,e);return m}const at="debugHeaders";function Vg(e,n,r){var i;let l={id:(i=r.id)!=null?i:n.id,column:n,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const c=[],d=h=>{h.subHeaders&&h.subHeaders.length&&h.subHeaders.map(d),c.push(h)};return d(l),c},getContext:()=>({table:e,header:l,column:n})};return e._features.forEach(c=>{c.createHeader==null||c.createHeader(l,e)}),l}const mC={createTable:e=>{e.getHeaderGroups=Ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,r,i,a)=>{var l,c;const d=(l=i?.map(m=>r.find(S=>S.id===m)).filter(Boolean))!=null?l:[],h=(c=a?.map(m=>r.find(S=>S.id===m)).filter(Boolean))!=null?c:[],v=r.filter(m=>!(i!=null&&i.includes(m.id))&&!(a!=null&&a.includes(m.id)));return Ts(n,[...d,...v,...h],e)},Re(e.options,at)),e.getCenterHeaderGroups=Ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,r,i,a)=>(r=r.filter(l=>!(i!=null&&i.includes(l.id))&&!(a!=null&&a.includes(l.id))),Ts(n,r,e,"center")),Re(e.options,at)),e.getLeftHeaderGroups=Ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(n,r,i)=>{var a;const l=(a=i?.map(c=>r.find(d=>d.id===c)).filter(Boolean))!=null?a:[];return Ts(n,l,e,"left")},Re(e.options,at)),e.getRightHeaderGroups=Ee(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(n,r,i)=>{var a;const l=(a=i?.map(c=>r.find(d=>d.id===c)).filter(Boolean))!=null?a:[];return Ts(n,l,e,"right")},Re(e.options,at)),e.getFooterGroups=Ee(()=>[e.getHeaderGroups()],n=>[...n].reverse(),Re(e.options,at)),e.getLeftFooterGroups=Ee(()=>[e.getLeftHeaderGroups()],n=>[...n].reverse(),Re(e.options,at)),e.getCenterFooterGroups=Ee(()=>[e.getCenterHeaderGroups()],n=>[...n].reverse(),Re(e.options,at)),e.getRightFooterGroups=Ee(()=>[e.getRightHeaderGroups()],n=>[...n].reverse(),Re(e.options,at)),e.getFlatHeaders=Ee(()=>[e.getHeaderGroups()],n=>n.map(r=>r.headers).flat(),Re(e.options,at)),e.getLeftFlatHeaders=Ee(()=>[e.getLeftHeaderGroups()],n=>n.map(r=>r.headers).flat(),Re(e.options,at)),e.getCenterFlatHeaders=Ee(()=>[e.getCenterHeaderGroups()],n=>n.map(r=>r.headers).flat(),Re(e.options,at)),e.getRightFlatHeaders=Ee(()=>[e.getRightHeaderGroups()],n=>n.map(r=>r.headers).flat(),Re(e.options,at)),e.getCenterLeafHeaders=Ee(()=>[e.getCenterFlatHeaders()],n=>n.filter(r=>{var i;return!((i=r.subHeaders)!=null&&i.length)}),Re(e.options,at)),e.getLeftLeafHeaders=Ee(()=>[e.getLeftFlatHeaders()],n=>n.filter(r=>{var i;return!((i=r.subHeaders)!=null&&i.length)}),Re(e.options,at)),e.getRightLeafHeaders=Ee(()=>[e.getRightFlatHeaders()],n=>n.filter(r=>{var i;return!((i=r.subHeaders)!=null&&i.length)}),Re(e.options,at)),e.getLeafHeaders=Ee(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(n,r,i)=>{var a,l,c,d,h,v;return[...(a=(l=n[0])==null?void 0:l.headers)!=null?a:[],...(c=(d=r[0])==null?void 0:d.headers)!=null?c:[],...(h=(v=i[0])==null?void 0:v.headers)!=null?h:[]].map(w=>w.getLeafHeaders()).flat()},Re(e.options,at))}};function Ts(e,n,r,i){var a,l;let c=0;const d=function(S,y){y===void 0&&(y=1),c=Math.max(c,y),S.filter(P=>P.getIsVisible()).forEach(P=>{var x;(x=P.columns)!=null&&x.length&&d(P.columns,y+1)},0)};d(e);let h=[];const v=(S,y)=>{const P={depth:y,id:[i,`${y}`].filter(Boolean).join("_"),headers:[]},x=[];S.forEach(R=>{const T=[...x].reverse()[0],_=R.column.depth===P.depth;let I,N=!1;if(_&&R.column.parent?I=R.column.parent:(I=R.column,N=!0),T&&T?.column===I)T.subHeaders.push(R);else{const L=Vg(r,I,{id:[i,y,I.id,R?.id].filter(Boolean).join("_"),isPlaceholder:N,placeholderId:N?`${x.filter(U=>U.column===I).length}`:void 0,depth:y,index:x.length});L.subHeaders.push(R),x.push(L)}P.headers.push(R),R.headerGroup=P}),h.push(P),y>0&&v(x,y-1)},w=n.map((S,y)=>Vg(r,S,{depth:c,index:y}));v(w,c-1),h.reverse();const m=S=>S.filter(P=>P.column.getIsVisible()).map(P=>{let x=0,R=0,T=[0];P.subHeaders&&P.subHeaders.length?(T=[],m(P.subHeaders).forEach(I=>{let{colSpan:N,rowSpan:L}=I;x+=N,T.push(L)})):x=1;const _=Math.min(...T);return R=R+_,P.colSpan=x,P.rowSpan=R,{colSpan:x,rowSpan:R}});return m((a=(l=h[0])==null?void 0:l.headers)!=null?a:[]),h}const Bc=(e,n,r,i,a,l,c)=>{let d={id:n,index:i,original:r,depth:a,parentId:c,_valuesCache:{},_uniqueValuesCache:{},getValue:h=>{if(d._valuesCache.hasOwnProperty(h))return d._valuesCache[h];const v=e.getColumn(h);if(v!=null&&v.accessorFn)return d._valuesCache[h]=v.accessorFn(d.original,i),d._valuesCache[h]},getUniqueValues:h=>{if(d._uniqueValuesCache.hasOwnProperty(h))return d._uniqueValuesCache[h];const v=e.getColumn(h);if(v!=null&&v.accessorFn)return v.columnDef.getUniqueValues?(d._uniqueValuesCache[h]=v.columnDef.getUniqueValues(d.original,i),d._uniqueValuesCache[h]):(d._uniqueValuesCache[h]=[d.getValue(h)],d._uniqueValuesCache[h])},renderValue:h=>{var v;return(v=d.getValue(h))!=null?v:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>pC(d.subRows,h=>h.subRows),getParentRow:()=>d.parentId?e.getRow(d.parentId,!0):void 0,getParentRows:()=>{let h=[],v=d;for(;;){const w=v.getParentRow();if(!w)break;h.push(w),v=w}return h.reverse()},getAllCells:Ee(()=>[e.getAllLeafColumns()],h=>h.map(v=>gC(e,d,v,v.id)),Re(e.options,"debugRows")),_getAllCellsByColumnId:Ee(()=>[d.getAllCells()],h=>h.reduce((v,w)=>(v[w.column.id]=w,v),{}),Re(e.options,"debugRows"))};for(let h=0;h<e._features.length;h++){const v=e._features[h];v==null||v.createRow==null||v.createRow(d,e)}return d},vC={createColumn:(e,n)=>{e._getFacetedRowModel=n.options.getFacetedRowModel&&n.options.getFacetedRowModel(n,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():n.getPreFilteredRowModel(),e._getFacetedUniqueValues=n.options.getFacetedUniqueValues&&n.options.getFacetedUniqueValues(n,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=n.options.getFacetedMinMaxValues&&n.options.getFacetedMinMaxValues(n,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},km=(e,n,r)=>{var i,a;const l=r==null||(i=r.toString())==null?void 0:i.toLowerCase();return!!(!((a=e.getValue(n))==null||(a=a.toString())==null||(a=a.toLowerCase())==null)&&a.includes(l))};km.autoRemove=e=>Qt(e);const $m=(e,n,r)=>{var i;return!!(!((i=e.getValue(n))==null||(i=i.toString())==null)&&i.includes(r))};$m.autoRemove=e=>Qt(e);const Nm=(e,n,r)=>{var i;return((i=e.getValue(n))==null||(i=i.toString())==null?void 0:i.toLowerCase())===r?.toLowerCase()};Nm.autoRemove=e=>Qt(e);const bm=(e,n,r)=>{var i;return(i=e.getValue(n))==null?void 0:i.includes(r)};bm.autoRemove=e=>Qt(e);const Am=(e,n,r)=>!r.some(i=>{var a;return!((a=e.getValue(n))!=null&&a.includes(i))});Am.autoRemove=e=>Qt(e)||!(e!=null&&e.length);const Lm=(e,n,r)=>r.some(i=>{var a;return(a=e.getValue(n))==null?void 0:a.includes(i)});Lm.autoRemove=e=>Qt(e)||!(e!=null&&e.length);const Fm=(e,n,r)=>e.getValue(n)===r;Fm.autoRemove=e=>Qt(e);const jm=(e,n,r)=>e.getValue(n)==r;jm.autoRemove=e=>Qt(e);const Wc=(e,n,r)=>{let[i,a]=r;const l=e.getValue(n);return l>=i&&l<=a};Wc.resolveFilterValue=e=>{let[n,r]=e,i=typeof n!="number"?parseFloat(n):n,a=typeof r!="number"?parseFloat(r):r,l=n===null||Number.isNaN(i)?-1/0:i,c=r===null||Number.isNaN(a)?1/0:a;if(l>c){const d=l;l=c,c=d}return[l,c]};Wc.autoRemove=e=>Qt(e)||Qt(e[0])&&Qt(e[1]);const wn={includesString:km,includesStringSensitive:$m,equalsString:Nm,arrIncludes:bm,arrIncludesAll:Am,arrIncludesSome:Lm,equals:Fm,weakEquals:jm,inNumberRange:Wc};function Qt(e){return e==null||e===""}const yC={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Mt("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,n)=>{e.getAutoFilterFn=()=>{const r=n.getCoreRowModel().flatRows[0],i=r?.getValue(e.id);return typeof i=="string"?wn.includesString:typeof i=="number"?wn.inNumberRange:typeof i=="boolean"||i!==null&&typeof i=="object"?wn.equals:Array.isArray(i)?wn.arrIncludes:wn.weakEquals},e.getFilterFn=()=>{var r,i;return il(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(i=n.options.filterFns)==null?void 0:i[e.columnDef.filterFn])!=null?r:wn[e.columnDef.filterFn]},e.getCanFilter=()=>{var r,i,a;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((i=n.options.enableColumnFilters)!=null?i:!0)&&((a=n.options.enableFilters)!=null?a:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var r;return(r=n.getState().columnFilters)==null||(r=r.find(i=>i.id===e.id))==null?void 0:r.value},e.getFilterIndex=()=>{var r,i;return(r=(i=n.getState().columnFilters)==null?void 0:i.findIndex(a=>a.id===e.id))!=null?r:-1},e.setFilterValue=r=>{n.setColumnFilters(i=>{const a=e.getFilterFn(),l=i?.find(w=>w.id===e.id),c=Xn(r,l?l.value:void 0);if(zg(a,c,e)){var d;return(d=i?.filter(w=>w.id!==e.id))!=null?d:[]}const h={id:e.id,value:c};if(l){var v;return(v=i?.map(w=>w.id===e.id?h:w))!=null?v:[]}return i!=null&&i.length?[...i,h]:[h]})}},createRow:(e,n)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=n=>{const r=e.getAllLeafColumns(),i=a=>{var l;return(l=Xn(n,a))==null?void 0:l.filter(c=>{const d=r.find(h=>h.id===c.id);if(d){const h=d.getFilterFn();if(zg(h,c.value,d))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(i)},e.resetColumnFilters=n=>{var r,i;e.setColumnFilters(n?[]:(r=(i=e.initialState)==null?void 0:i.columnFilters)!=null?r:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function zg(e,n,r){return(e&&e.autoRemove?e.autoRemove(n,r):!1)||typeof n>"u"||typeof n=="string"&&!n}const wC=(e,n,r)=>r.reduce((i,a)=>{const l=a.getValue(e);return i+(typeof l=="number"?l:0)},0),SC=(e,n,r)=>{let i;return r.forEach(a=>{const l=a.getValue(e);l!=null&&(i>l||i===void 0&&l>=l)&&(i=l)}),i},xC=(e,n,r)=>{let i;return r.forEach(a=>{const l=a.getValue(e);l!=null&&(i<l||i===void 0&&l>=l)&&(i=l)}),i},CC=(e,n,r)=>{let i,a;return r.forEach(l=>{const c=l.getValue(e);c!=null&&(i===void 0?c>=c&&(i=a=c):(i>c&&(i=c),a<c&&(a=c)))}),[i,a]},EC=(e,n)=>{let r=0,i=0;if(n.forEach(a=>{let l=a.getValue(e);l!=null&&(l=+l)>=l&&(++r,i+=l)}),r)return i/r},RC=(e,n)=>{if(!n.length)return;const r=n.map(l=>l.getValue(e));if(!fC(r))return;if(r.length===1)return r[0];const i=Math.floor(r.length/2),a=r.sort((l,c)=>l-c);return r.length%2!==0?a[i]:(a[i-1]+a[i])/2},PC=(e,n)=>Array.from(new Set(n.map(r=>r.getValue(e))).values()),_C=(e,n)=>new Set(n.map(r=>r.getValue(e))).size,TC=(e,n)=>n.length,_u={sum:wC,min:SC,max:xC,extent:CC,mean:EC,median:RC,unique:PC,uniqueCount:_C,count:TC},IC={getDefaultColumnDef:()=>({aggregatedCell:e=>{var n,r;return(n=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?n:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Mt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,n)=>{e.toggleGrouping=()=>{n.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(i=>i!==e.id):[...r??[],e.id])},e.getCanGroup=()=>{var r,i;return((r=e.columnDef.enableGrouping)!=null?r:!0)&&((i=n.options.enableGrouping)!=null?i:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var r;return(r=n.getState().grouping)==null?void 0:r.includes(e.id)},e.getGroupedIndex=()=>{var r;return(r=n.getState().grouping)==null?void 0:r.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const r=e.getCanGroup();return()=>{r&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const r=n.getCoreRowModel().flatRows[0],i=r?.getValue(e.id);if(typeof i=="number")return _u.sum;if(Object.prototype.toString.call(i)==="[object Date]")return _u.extent},e.getAggregationFn=()=>{var r,i;if(!e)throw new Error;return il(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(i=n.options.aggregationFns)==null?void 0:i[e.columnDef.aggregationFn])!=null?r:_u[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=n=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(n),e.resetGrouping=n=>{var r,i;e.setGrouping(n?[]:(r=(i=e.initialState)==null?void 0:i.grouping)!=null?r:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,n)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=r=>{if(e._groupingValuesCache.hasOwnProperty(r))return e._groupingValuesCache[r];const i=n.getColumn(r);return i!=null&&i.columnDef.getGroupingValue?(e._groupingValuesCache[r]=i.columnDef.getGroupingValue(e.original),e._groupingValuesCache[r]):e.getValue(r)},e._groupingValuesCache={}},createCell:(e,n,r,i)=>{e.getIsGrouped=()=>n.getIsGrouped()&&n.id===r.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&n.getIsGrouped(),e.getIsAggregated=()=>{var a;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((a=r.subRows)!=null&&a.length)}}};function DC(e,n,r){if(!(n!=null&&n.length)||!r)return e;const i=e.filter(l=>!n.includes(l.id));return r==="remove"?i:[...n.map(l=>e.find(c=>c.id===l)).filter(Boolean),...i]}const OC={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Mt("columnOrder",e)}),createColumn:(e,n)=>{e.getIndex=Ee(r=>[ei(n,r)],r=>r.findIndex(i=>i.id===e.id),Re(n.options,"debugColumns")),e.getIsFirstColumn=r=>{var i;return((i=ei(n,r)[0])==null?void 0:i.id)===e.id},e.getIsLastColumn=r=>{var i;const a=ei(n,r);return((i=a[a.length-1])==null?void 0:i.id)===e.id}},createTable:e=>{e.setColumnOrder=n=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(n),e.resetColumnOrder=n=>{var r;e.setColumnOrder(n?[]:(r=e.initialState.columnOrder)!=null?r:[])},e._getOrderColumnsFn=Ee(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(n,r,i)=>a=>{let l=[];if(!(n!=null&&n.length))l=a;else{const c=[...n],d=[...a];for(;d.length&&c.length;){const h=c.shift(),v=d.findIndex(w=>w.id===h);v>-1&&l.push(d.splice(v,1)[0])}l=[...l,...d]}return DC(l,r,i)},Re(e.options,"debugTable"))}},Tu=()=>({left:[],right:[]}),MC={getInitialState:e=>({columnPinning:Tu(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Mt("columnPinning",e)}),createColumn:(e,n)=>{e.pin=r=>{const i=e.getLeafColumns().map(a=>a.id).filter(Boolean);n.setColumnPinning(a=>{var l,c;if(r==="right"){var d,h;return{left:((d=a?.left)!=null?d:[]).filter(m=>!(i!=null&&i.includes(m))),right:[...((h=a?.right)!=null?h:[]).filter(m=>!(i!=null&&i.includes(m))),...i]}}if(r==="left"){var v,w;return{left:[...((v=a?.left)!=null?v:[]).filter(m=>!(i!=null&&i.includes(m))),...i],right:((w=a?.right)!=null?w:[]).filter(m=>!(i!=null&&i.includes(m)))}}return{left:((l=a?.left)!=null?l:[]).filter(m=>!(i!=null&&i.includes(m))),right:((c=a?.right)!=null?c:[]).filter(m=>!(i!=null&&i.includes(m)))}})},e.getCanPin=()=>e.getLeafColumns().some(i=>{var a,l,c;return((a=i.columnDef.enablePinning)!=null?a:!0)&&((l=(c=n.options.enableColumnPinning)!=null?c:n.options.enablePinning)!=null?l:!0)}),e.getIsPinned=()=>{const r=e.getLeafColumns().map(d=>d.id),{left:i,right:a}=n.getState().columnPinning,l=r.some(d=>i?.includes(d)),c=r.some(d=>a?.includes(d));return l?"left":c?"right":!1},e.getPinnedIndex=()=>{var r,i;const a=e.getIsPinned();return a?(r=(i=n.getState().columnPinning)==null||(i=i[a])==null?void 0:i.indexOf(e.id))!=null?r:-1:0}},createRow:(e,n)=>{e.getCenterVisibleCells=Ee(()=>[e._getAllVisibleCells(),n.getState().columnPinning.left,n.getState().columnPinning.right],(r,i,a)=>{const l=[...i??[],...a??[]];return r.filter(c=>!l.includes(c.column.id))},Re(n.options,"debugRows")),e.getLeftVisibleCells=Ee(()=>[e._getAllVisibleCells(),n.getState().columnPinning.left],(r,i)=>(i??[]).map(l=>r.find(c=>c.column.id===l)).filter(Boolean).map(l=>({...l,position:"left"})),Re(n.options,"debugRows")),e.getRightVisibleCells=Ee(()=>[e._getAllVisibleCells(),n.getState().columnPinning.right],(r,i)=>(i??[]).map(l=>r.find(c=>c.column.id===l)).filter(Boolean).map(l=>({...l,position:"right"})),Re(n.options,"debugRows"))},createTable:e=>{e.setColumnPinning=n=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(n),e.resetColumnPinning=n=>{var r,i;return e.setColumnPinning(n?Tu():(r=(i=e.initialState)==null?void 0:i.columnPinning)!=null?r:Tu())},e.getIsSomeColumnsPinned=n=>{var r;const i=e.getState().columnPinning;if(!n){var a,l;return!!((a=i.left)!=null&&a.length||(l=i.right)!=null&&l.length)}return!!((r=i[n])!=null&&r.length)},e.getLeftLeafColumns=Ee(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(n,r)=>(r??[]).map(i=>n.find(a=>a.id===i)).filter(Boolean),Re(e.options,"debugColumns")),e.getRightLeafColumns=Ee(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(a=>a.id===i)).filter(Boolean),Re(e.options,"debugColumns")),e.getCenterLeafColumns=Ee(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,r,i)=>{const a=[...r??[],...i??[]];return n.filter(l=>!a.includes(l.id))},Re(e.options,"debugColumns"))}};function kC(e){return e||(typeof document<"u"?document:null)}const Is={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Iu=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),$C={getDefaultColumnDef:()=>Is,getInitialState:e=>({columnSizing:{},columnSizingInfo:Iu(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Mt("columnSizing",e),onColumnSizingInfoChange:Mt("columnSizingInfo",e)}),createColumn:(e,n)=>{e.getSize=()=>{var r,i,a;const l=n.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:Is.minSize,(i=l??e.columnDef.size)!=null?i:Is.size),(a=e.columnDef.maxSize)!=null?a:Is.maxSize)},e.getStart=Ee(r=>[r,ei(n,r),n.getState().columnSizing],(r,i)=>i.slice(0,e.getIndex(r)).reduce((a,l)=>a+l.getSize(),0),Re(n.options,"debugColumns")),e.getAfter=Ee(r=>[r,ei(n,r),n.getState().columnSizing],(r,i)=>i.slice(e.getIndex(r)+1).reduce((a,l)=>a+l.getSize(),0),Re(n.options,"debugColumns")),e.resetSize=()=>{n.setColumnSizing(r=>{let{[e.id]:i,...a}=r;return a})},e.getCanResize=()=>{var r,i;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((i=n.options.enableColumnResizing)!=null?i:!0)},e.getIsResizing=()=>n.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,n)=>{e.getSize=()=>{let r=0;const i=a=>{if(a.subHeaders.length)a.subHeaders.forEach(i);else{var l;r+=(l=a.column.getSize())!=null?l:0}};return i(e),r},e.getStart=()=>{if(e.index>0){const r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},e.getResizeHandler=r=>{const i=n.getColumn(e.column.id),a=i?.getCanResize();return l=>{if(!i||!a||(l.persist==null||l.persist(),Du(l)&&l.touches&&l.touches.length>1))return;const c=e.getSize(),d=e?e.getLeafHeaders().map(T=>[T.column.id,T.column.getSize()]):[[i.id,i.getSize()]],h=Du(l)?Math.round(l.touches[0].clientX):l.clientX,v={},w=(T,_)=>{typeof _=="number"&&(n.setColumnSizingInfo(I=>{var N,L;const U=n.options.columnResizeDirection==="rtl"?-1:1,b=(_-((N=I?.startOffset)!=null?N:0))*U,A=Math.max(b/((L=I?.startSize)!=null?L:0),-.999999);return I.columnSizingStart.forEach(X=>{let[Q,ee]=X;v[Q]=Math.round(Math.max(ee+ee*A,0)*100)/100}),{...I,deltaOffset:b,deltaPercentage:A}}),(n.options.columnResizeMode==="onChange"||T==="end")&&n.setColumnSizing(I=>({...I,...v})))},m=T=>w("move",T),S=T=>{w("end",T),n.setColumnSizingInfo(_=>({..._,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},y=kC(r),P={moveHandler:T=>m(T.clientX),upHandler:T=>{y?.removeEventListener("mousemove",P.moveHandler),y?.removeEventListener("mouseup",P.upHandler),S(T.clientX)}},x={moveHandler:T=>(T.cancelable&&(T.preventDefault(),T.stopPropagation()),m(T.touches[0].clientX),!1),upHandler:T=>{var _;y?.removeEventListener("touchmove",x.moveHandler),y?.removeEventListener("touchend",x.upHandler),T.cancelable&&(T.preventDefault(),T.stopPropagation()),S((_=T.touches[0])==null?void 0:_.clientX)}},R=NC()?{passive:!1}:!1;Du(l)?(y?.addEventListener("touchmove",x.moveHandler,R),y?.addEventListener("touchend",x.upHandler,R)):(y?.addEventListener("mousemove",P.moveHandler,R),y?.addEventListener("mouseup",P.upHandler,R)),n.setColumnSizingInfo(T=>({...T,startOffset:h,startSize:c,deltaOffset:0,deltaPercentage:0,columnSizingStart:d,isResizingColumn:i.id}))}}},createTable:e=>{e.setColumnSizing=n=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(n),e.setColumnSizingInfo=n=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(n),e.resetColumnSizing=n=>{var r;e.setColumnSizing(n?{}:(r=e.initialState.columnSizing)!=null?r:{})},e.resetHeaderSizeInfo=n=>{var r;e.setColumnSizingInfo(n?Iu():(r=e.initialState.columnSizingInfo)!=null?r:Iu())},e.getTotalSize=()=>{var n,r;return(n=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((i,a)=>i+a.getSize(),0))!=null?n:0},e.getLeftTotalSize=()=>{var n,r;return(n=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((i,a)=>i+a.getSize(),0))!=null?n:0},e.getCenterTotalSize=()=>{var n,r;return(n=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((i,a)=>i+a.getSize(),0))!=null?n:0},e.getRightTotalSize=()=>{var n,r;return(n=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((i,a)=>i+a.getSize(),0))!=null?n:0}}};let Ds=null;function NC(){if(typeof Ds=="boolean")return Ds;let e=!1;try{const n={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,n),window.removeEventListener("test",r)}catch{e=!1}return Ds=e,Ds}function Du(e){return e.type==="touchstart"}const bC={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Mt("columnVisibility",e)}),createColumn:(e,n)=>{e.toggleVisibility=r=>{e.getCanHide()&&n.setColumnVisibility(i=>({...i,[e.id]:r??!e.getIsVisible()}))},e.getIsVisible=()=>{var r,i;const a=e.columns;return(r=a.length?a.some(l=>l.getIsVisible()):(i=n.getState().columnVisibility)==null?void 0:i[e.id])!=null?r:!0},e.getCanHide=()=>{var r,i;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((i=n.options.enableHiding)!=null?i:!0)},e.getToggleVisibilityHandler=()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}},createRow:(e,n)=>{e._getAllVisibleCells=Ee(()=>[e.getAllCells(),n.getState().columnVisibility],r=>r.filter(i=>i.column.getIsVisible()),Re(n.options,"debugRows")),e.getVisibleCells=Ee(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,i,a)=>[...r,...i,...a],Re(n.options,"debugRows"))},createTable:e=>{const n=(r,i)=>Ee(()=>[i(),i().filter(a=>a.getIsVisible()).map(a=>a.id).join("_")],a=>a.filter(l=>l.getIsVisible==null?void 0:l.getIsVisible()),Re(e.options,"debugColumns"));e.getVisibleFlatColumns=n("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=n("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=n("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=n("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=n("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),e.resetColumnVisibility=r=>{var i;e.setColumnVisibility(r?{}:(i=e.initialState.columnVisibility)!=null?i:{})},e.toggleAllColumnsVisible=r=>{var i;r=(i=r)!=null?i:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((a,l)=>({...a,[l.id]:r||!(l.getCanHide!=null&&l.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>r=>{var i;e.toggleAllColumnsVisible((i=r.target)==null?void 0:i.checked)}}};function ei(e,n){return n?n==="center"?e.getCenterVisibleLeafColumns():n==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const AC={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},LC={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Mt("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:n=>{var r;const i=(r=e.getCoreRowModel().flatRows[0])==null||(r=r._getAllCellsByColumnId()[n.id])==null?void 0:r.getValue();return typeof i=="string"||typeof i=="number"}}),createColumn:(e,n)=>{e.getCanGlobalFilter=()=>{var r,i,a,l;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((i=n.options.enableGlobalFilter)!=null?i:!0)&&((a=n.options.enableFilters)!=null?a:!0)&&((l=n.options.getColumnCanGlobalFilter==null?void 0:n.options.getColumnCanGlobalFilter(e))!=null?l:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>wn.includesString,e.getGlobalFilterFn=()=>{var n,r;const{globalFilterFn:i}=e.options;return il(i)?i:i==="auto"?e.getGlobalAutoFilterFn():(n=(r=e.options.filterFns)==null?void 0:r[i])!=null?n:wn[i]},e.setGlobalFilter=n=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(n)},e.resetGlobalFilter=n=>{e.setGlobalFilter(n?void 0:e.initialState.globalFilter)}}},FC={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Mt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let n=!1,r=!1;e._autoResetExpanded=()=>{var i,a;if(!n){e._queue(()=>{n=!0});return}if((i=(a=e.options.autoResetAll)!=null?a:e.options.autoResetExpanded)!=null?i:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},e.setExpanded=i=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(i),e.toggleAllRowsExpanded=i=>{i??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=i=>{var a,l;e.setExpanded(i?{}:(a=(l=e.initialState)==null?void 0:l.expanded)!=null?a:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(i=>i.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>i=>{i.persist==null||i.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const i=e.getState().expanded;return i===!0||Object.values(i).some(Boolean)},e.getIsAllRowsExpanded=()=>{const i=e.getState().expanded;return typeof i=="boolean"?i===!0:!(!Object.keys(i).length||e.getRowModel().flatRows.some(a=>!a.getIsExpanded()))},e.getExpandedDepth=()=>{let i=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(l=>{const c=l.split(".");i=Math.max(i,c.length)}),i},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,n)=>{e.toggleExpanded=r=>{n.setExpanded(i=>{var a;const l=i===!0?!0:!!(i!=null&&i[e.id]);let c={};if(i===!0?Object.keys(n.getRowModel().rowsById).forEach(d=>{c[d]=!0}):c=i,r=(a=r)!=null?a:!l,!l&&r)return{...c,[e.id]:!0};if(l&&!r){const{[e.id]:d,...h}=c;return h}return i})},e.getIsExpanded=()=>{var r;const i=n.getState().expanded;return!!((r=n.options.getIsRowExpanded==null?void 0:n.options.getIsRowExpanded(e))!=null?r:i===!0||i?.[e.id])},e.getCanExpand=()=>{var r,i,a;return(r=n.options.getRowCanExpand==null?void 0:n.options.getRowCanExpand(e))!=null?r:((i=n.options.enableExpanding)!=null?i:!0)&&!!((a=e.subRows)!=null&&a.length)},e.getIsAllParentsExpanded=()=>{let r=!0,i=e;for(;r&&i.parentId;)i=n.getRow(i.parentId,!0),r=i.getIsExpanded();return r},e.getToggleExpandedHandler=()=>{const r=e.getCanExpand();return()=>{r&&e.toggleExpanded()}}}},oc=0,ic=10,Ou=()=>({pageIndex:oc,pageSize:ic}),jC={getInitialState:e=>({...e,pagination:{...Ou(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:Mt("pagination",e)}),createTable:e=>{let n=!1,r=!1;e._autoResetPageIndex=()=>{var i,a;if(!n){e._queue(()=>{n=!0});return}if((i=(a=e.options.autoResetAll)!=null?a:e.options.autoResetPageIndex)!=null?i:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},e.setPagination=i=>{const a=l=>Xn(i,l);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(a)},e.resetPagination=i=>{var a;e.setPagination(i?Ou():(a=e.initialState.pagination)!=null?a:Ou())},e.setPageIndex=i=>{e.setPagination(a=>{let l=Xn(i,a.pageIndex);const c=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return l=Math.max(0,Math.min(l,c)),{...a,pageIndex:l}})},e.resetPageIndex=i=>{var a,l;e.setPageIndex(i?oc:(a=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageIndex)!=null?a:oc)},e.resetPageSize=i=>{var a,l;e.setPageSize(i?ic:(a=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageSize)!=null?a:ic)},e.setPageSize=i=>{e.setPagination(a=>{const l=Math.max(1,Xn(i,a.pageSize)),c=a.pageSize*a.pageIndex,d=Math.floor(c/l);return{...a,pageIndex:d,pageSize:l}})},e.setPageCount=i=>e.setPagination(a=>{var l;let c=Xn(i,(l=e.options.pageCount)!=null?l:-1);return typeof c=="number"&&(c=Math.max(-1,c)),{...a,pageCount:c}}),e.getPageOptions=Ee(()=>[e.getPageCount()],i=>{let a=[];return i&&i>0&&(a=[...new Array(i)].fill(null).map((l,c)=>c)),a},Re(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:i}=e.getState().pagination,a=e.getPageCount();return a===-1?!0:a===0?!1:i<a-1},e.previousPage=()=>e.setPageIndex(i=>i-1),e.nextPage=()=>e.setPageIndex(i=>i+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var i;return(i=e.options.pageCount)!=null?i:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var i;return(i=e.options.rowCount)!=null?i:e.getPrePaginationRowModel().rows.length}}},Mu=()=>({top:[],bottom:[]}),VC={getInitialState:e=>({rowPinning:Mu(),...e}),getDefaultOptions:e=>({onRowPinningChange:Mt("rowPinning",e)}),createRow:(e,n)=>{e.pin=(r,i,a)=>{const l=i?e.getLeafRows().map(h=>{let{id:v}=h;return v}):[],c=a?e.getParentRows().map(h=>{let{id:v}=h;return v}):[],d=new Set([...c,e.id,...l]);n.setRowPinning(h=>{var v,w;if(r==="bottom"){var m,S;return{top:((m=h?.top)!=null?m:[]).filter(x=>!(d!=null&&d.has(x))),bottom:[...((S=h?.bottom)!=null?S:[]).filter(x=>!(d!=null&&d.has(x))),...Array.from(d)]}}if(r==="top"){var y,P;return{top:[...((y=h?.top)!=null?y:[]).filter(x=>!(d!=null&&d.has(x))),...Array.from(d)],bottom:((P=h?.bottom)!=null?P:[]).filter(x=>!(d!=null&&d.has(x)))}}return{top:((v=h?.top)!=null?v:[]).filter(x=>!(d!=null&&d.has(x))),bottom:((w=h?.bottom)!=null?w:[]).filter(x=>!(d!=null&&d.has(x)))}})},e.getCanPin=()=>{var r;const{enableRowPinning:i,enablePinning:a}=n.options;return typeof i=="function"?i(e):(r=i??a)!=null?r:!0},e.getIsPinned=()=>{const r=[e.id],{top:i,bottom:a}=n.getState().rowPinning,l=r.some(d=>i?.includes(d)),c=r.some(d=>a?.includes(d));return l?"top":c?"bottom":!1},e.getPinnedIndex=()=>{var r,i;const a=e.getIsPinned();if(!a)return-1;const l=(r=a==="top"?n.getTopRows():n.getBottomRows())==null?void 0:r.map(c=>{let{id:d}=c;return d});return(i=l?.indexOf(e.id))!=null?i:-1}},createTable:e=>{e.setRowPinning=n=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(n),e.resetRowPinning=n=>{var r,i;return e.setRowPinning(n?Mu():(r=(i=e.initialState)==null?void 0:i.rowPinning)!=null?r:Mu())},e.getIsSomeRowsPinned=n=>{var r;const i=e.getState().rowPinning;if(!n){var a,l;return!!((a=i.top)!=null&&a.length||(l=i.bottom)!=null&&l.length)}return!!((r=i[n])!=null&&r.length)},e._getPinnedRows=(n,r,i)=>{var a;return((a=e.options.keepPinnedRows)==null||a?(r??[]).map(c=>{const d=e.getRow(c,!0);return d.getIsAllParentsExpanded()?d:null}):(r??[]).map(c=>n.find(d=>d.id===c))).filter(Boolean).map(c=>({...c,position:i}))},e.getTopRows=Ee(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(n,r)=>e._getPinnedRows(n,r,"top"),Re(e.options,"debugRows")),e.getBottomRows=Ee(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(n,r)=>e._getPinnedRows(n,r,"bottom"),Re(e.options,"debugRows")),e.getCenterRows=Ee(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(n,r,i)=>{const a=new Set([...r??[],...i??[]]);return n.filter(l=>!a.has(l.id))},Re(e.options,"debugRows"))}},zC={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Mt("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=n=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(n),e.resetRowSelection=n=>{var r;return e.setRowSelection(n?{}:(r=e.initialState.rowSelection)!=null?r:{})},e.toggleAllRowsSelected=n=>{e.setRowSelection(r=>{n=typeof n<"u"?n:!e.getIsAllRowsSelected();const i={...r},a=e.getPreGroupedRowModel().flatRows;return n?a.forEach(l=>{l.getCanSelect()&&(i[l.id]=!0)}):a.forEach(l=>{delete i[l.id]}),i})},e.toggleAllPageRowsSelected=n=>e.setRowSelection(r=>{const i=typeof n<"u"?n:!e.getIsAllPageRowsSelected(),a={...r};return e.getRowModel().rows.forEach(l=>{sc(a,l.id,i,!0,e)}),a}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Ee(()=>[e.getState().rowSelection,e.getCoreRowModel()],(n,r)=>Object.keys(n).length?ku(e,r):{rows:[],flatRows:[],rowsById:{}},Re(e.options,"debugTable")),e.getFilteredSelectedRowModel=Ee(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(n,r)=>Object.keys(n).length?ku(e,r):{rows:[],flatRows:[],rowsById:{}},Re(e.options,"debugTable")),e.getGroupedSelectedRowModel=Ee(()=>[e.getState().rowSelection,e.getSortedRowModel()],(n,r)=>Object.keys(n).length?ku(e,r):{rows:[],flatRows:[],rowsById:{}},Re(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const n=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState();let i=!!(n.length&&Object.keys(r).length);return i&&n.some(a=>a.getCanSelect()&&!r[a.id])&&(i=!1),i},e.getIsAllPageRowsSelected=()=>{const n=e.getPaginationRowModel().flatRows.filter(a=>a.getCanSelect()),{rowSelection:r}=e.getState();let i=!!n.length;return i&&n.some(a=>!r[a.id])&&(i=!1),i},e.getIsSomeRowsSelected=()=>{var n;const r=Object.keys((n=e.getState().rowSelection)!=null?n:{}).length;return r>0&&r<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const n=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:n.filter(r=>r.getCanSelect()).some(r=>r.getIsSelected()||r.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>n=>{e.toggleAllRowsSelected(n.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>n=>{e.toggleAllPageRowsSelected(n.target.checked)}},createRow:(e,n)=>{e.toggleSelected=(r,i)=>{const a=e.getIsSelected();n.setRowSelection(l=>{var c;if(r=typeof r<"u"?r:!a,e.getCanSelect()&&a===r)return l;const d={...l};return sc(d,e.id,r,(c=i?.selectChildren)!=null?c:!0,n),d})},e.getIsSelected=()=>{const{rowSelection:r}=n.getState();return Gc(e,r)},e.getIsSomeSelected=()=>{const{rowSelection:r}=n.getState();return lc(e,r)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:r}=n.getState();return lc(e,r)==="all"},e.getCanSelect=()=>{var r;return typeof n.options.enableRowSelection=="function"?n.options.enableRowSelection(e):(r=n.options.enableRowSelection)!=null?r:!0},e.getCanSelectSubRows=()=>{var r;return typeof n.options.enableSubRowSelection=="function"?n.options.enableSubRowSelection(e):(r=n.options.enableSubRowSelection)!=null?r:!0},e.getCanMultiSelect=()=>{var r;return typeof n.options.enableMultiRowSelection=="function"?n.options.enableMultiRowSelection(e):(r=n.options.enableMultiRowSelection)!=null?r:!0},e.getToggleSelectedHandler=()=>{const r=e.getCanSelect();return i=>{var a;r&&e.toggleSelected((a=i.target)==null?void 0:a.checked)}}}},sc=(e,n,r,i,a)=>{var l;const c=a.getRow(n,!0);r?(c.getCanMultiSelect()||Object.keys(e).forEach(d=>delete e[d]),c.getCanSelect()&&(e[n]=!0)):delete e[n],i&&(l=c.subRows)!=null&&l.length&&c.getCanSelectSubRows()&&c.subRows.forEach(d=>sc(e,d.id,r,i,a))};function ku(e,n){const r=e.getState().rowSelection,i=[],a={},l=function(c,d){return c.map(h=>{var v;const w=Gc(h,r);if(w&&(i.push(h),a[h.id]=h),(v=h.subRows)!=null&&v.length&&(h={...h,subRows:l(h.subRows)}),w)return h}).filter(Boolean)};return{rows:l(n.rows),flatRows:i,rowsById:a}}function Gc(e,n){var r;return(r=n[e.id])!=null?r:!1}function lc(e,n,r){var i;if(!((i=e.subRows)!=null&&i.length))return!1;let a=!0,l=!1;return e.subRows.forEach(c=>{if(!(l&&!a)&&(c.getCanSelect()&&(Gc(c,n)?l=!0:a=!1),c.subRows&&c.subRows.length)){const d=lc(c,n);d==="all"?l=!0:(d==="some"&&(l=!0),a=!1)}}),a?"all":l?"some":!1}const ac=/([0-9]+)/gm,HC=(e,n,r)=>Vm(qn(e.getValue(r)).toLowerCase(),qn(n.getValue(r)).toLowerCase()),UC=(e,n,r)=>Vm(qn(e.getValue(r)),qn(n.getValue(r))),BC=(e,n,r)=>Kc(qn(e.getValue(r)).toLowerCase(),qn(n.getValue(r)).toLowerCase()),WC=(e,n,r)=>Kc(qn(e.getValue(r)),qn(n.getValue(r))),GC=(e,n,r)=>{const i=e.getValue(r),a=n.getValue(r);return i>a?1:i<a?-1:0},KC=(e,n,r)=>Kc(e.getValue(r),n.getValue(r));function Kc(e,n){return e===n?0:e>n?1:-1}function qn(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Vm(e,n){const r=e.split(ac).filter(Boolean),i=n.split(ac).filter(Boolean);for(;r.length&&i.length;){const a=r.shift(),l=i.shift(),c=parseInt(a,10),d=parseInt(l,10),h=[c,d].sort();if(isNaN(h[0])){if(a>l)return 1;if(l>a)return-1;continue}if(isNaN(h[1]))return isNaN(c)?-1:1;if(c>d)return 1;if(d>c)return-1}return r.length-i.length}const qo={alphanumeric:HC,alphanumericCaseSensitive:UC,text:BC,textCaseSensitive:WC,datetime:GC,basic:KC},XC={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Mt("sorting",e),isMultiSortEvent:n=>n.shiftKey}),createColumn:(e,n)=>{e.getAutoSortingFn=()=>{const r=n.getFilteredRowModel().flatRows.slice(10);let i=!1;for(const a of r){const l=a?.getValue(e.id);if(Object.prototype.toString.call(l)==="[object Date]")return qo.datetime;if(typeof l=="string"&&(i=!0,l.split(ac).length>1))return qo.alphanumeric}return i?qo.text:qo.basic},e.getAutoSortDir=()=>{const r=n.getFilteredRowModel().flatRows[0];return typeof r?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var r,i;if(!e)throw new Error;return il(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(i=n.options.sortingFns)==null?void 0:i[e.columnDef.sortingFn])!=null?r:qo[e.columnDef.sortingFn]},e.toggleSorting=(r,i)=>{const a=e.getNextSortingOrder(),l=typeof r<"u"&&r!==null;n.setSorting(c=>{const d=c?.find(y=>y.id===e.id),h=c?.findIndex(y=>y.id===e.id);let v=[],w,m=l?r:a==="desc";if(c!=null&&c.length&&e.getCanMultiSort()&&i?d?w="toggle":w="add":c!=null&&c.length&&h!==c.length-1?w="replace":d?w="toggle":w="replace",w==="toggle"&&(l||a||(w="remove")),w==="add"){var S;v=[...c,{id:e.id,desc:m}],v.splice(0,v.length-((S=n.options.maxMultiSortColCount)!=null?S:Number.MAX_SAFE_INTEGER))}else w==="toggle"?v=c.map(y=>y.id===e.id?{...y,desc:m}:y):w==="remove"?v=c.filter(y=>y.id!==e.id):v=[{id:e.id,desc:m}];return v})},e.getFirstSortDir=()=>{var r,i;return((r=(i=e.columnDef.sortDescFirst)!=null?i:n.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=r=>{var i,a;const l=e.getFirstSortDir(),c=e.getIsSorted();return c?c!==l&&((i=n.options.enableSortingRemoval)==null||i)&&(!(r&&(a=n.options.enableMultiRemove)!=null)||a)?!1:c==="desc"?"asc":"desc":l},e.getCanSort=()=>{var r,i;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((i=n.options.enableSorting)!=null?i:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var r,i;return(r=(i=e.columnDef.enableMultiSort)!=null?i:n.options.enableMultiSort)!=null?r:!!e.accessorFn},e.getIsSorted=()=>{var r;const i=(r=n.getState().sorting)==null?void 0:r.find(a=>a.id===e.id);return i?i.desc?"desc":"asc":!1},e.getSortIndex=()=>{var r,i;return(r=(i=n.getState().sorting)==null?void 0:i.findIndex(a=>a.id===e.id))!=null?r:-1},e.clearSorting=()=>{n.setSorting(r=>r!=null&&r.length?r.filter(i=>i.id!==e.id):[])},e.getToggleSortingHandler=()=>{const r=e.getCanSort();return i=>{r&&(i.persist==null||i.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?n.options.isMultiSortEvent==null?void 0:n.options.isMultiSortEvent(i):!1))}}},createTable:e=>{e.setSorting=n=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(n),e.resetSorting=n=>{var r,i;e.setSorting(n?[]:(r=(i=e.initialState)==null?void 0:i.sorting)!=null?r:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},qC=[mC,bC,OC,MC,vC,yC,AC,LC,XC,IC,FC,jC,VC,zC,$C];function YC(e){var n,r;const i=[...qC,...(n=e._features)!=null?n:[]];let a={_features:i};const l=a._features.reduce((S,y)=>Object.assign(S,y.getDefaultOptions==null?void 0:y.getDefaultOptions(a)),{}),c=S=>a.options.mergeOptions?a.options.mergeOptions(l,S):{...l,...S};let h={...{},...(r=e.initialState)!=null?r:{}};a._features.forEach(S=>{var y;h=(y=S.getInitialState==null?void 0:S.getInitialState(h))!=null?y:h});const v=[];let w=!1;const m={_features:i,options:{...l,...e},initialState:h,_queue:S=>{v.push(S),w||(w=!0,Promise.resolve().then(()=>{for(;v.length;)v.shift()();w=!1}).catch(y=>setTimeout(()=>{throw y})))},reset:()=>{a.setState(a.initialState)},setOptions:S=>{const y=Xn(S,a.options);a.options=c(y)},getState:()=>a.options.state,setState:S=>{a.options.onStateChange==null||a.options.onStateChange(S)},_getRowId:(S,y,P)=>{var x;return(x=a.options.getRowId==null?void 0:a.options.getRowId(S,y,P))!=null?x:`${P?[P.id,y].join("."):y}`},getCoreRowModel:()=>(a._getCoreRowModel||(a._getCoreRowModel=a.options.getCoreRowModel(a)),a._getCoreRowModel()),getRowModel:()=>a.getPaginationRowModel(),getRow:(S,y)=>{let P=(y?a.getPrePaginationRowModel():a.getRowModel()).rowsById[S];if(!P&&(P=a.getCoreRowModel().rowsById[S],!P))throw new Error;return P},_getDefaultColumnDef:Ee(()=>[a.options.defaultColumn],S=>{var y;return S=(y=S)!=null?y:{},{header:P=>{const x=P.header.column.columnDef;return x.accessorKey?x.accessorKey:x.accessorFn?x.id:null},cell:P=>{var x,R;return(x=(R=P.renderValue())==null||R.toString==null?void 0:R.toString())!=null?x:null},...a._features.reduce((P,x)=>Object.assign(P,x.getDefaultColumnDef==null?void 0:x.getDefaultColumnDef()),{}),...S}},Re(e,"debugColumns")),_getColumnDefs:()=>a.options.columns,getAllColumns:Ee(()=>[a._getColumnDefs()],S=>{const y=function(P,x,R){return R===void 0&&(R=0),P.map(T=>{const _=hC(a,T,R,x),I=T;return _.columns=I.columns?y(I.columns,_,R+1):[],_})};return y(S)},Re(e,"debugColumns")),getAllFlatColumns:Ee(()=>[a.getAllColumns()],S=>S.flatMap(y=>y.getFlatColumns()),Re(e,"debugColumns")),_getAllFlatColumnsById:Ee(()=>[a.getAllFlatColumns()],S=>S.reduce((y,P)=>(y[P.id]=P,y),{}),Re(e,"debugColumns")),getAllLeafColumns:Ee(()=>[a.getAllColumns(),a._getOrderColumnsFn()],(S,y)=>{let P=S.flatMap(x=>x.getLeafColumns());return y(P)},Re(e,"debugColumns")),getColumn:S=>a._getAllFlatColumnsById()[S]};Object.assign(a,m);for(let S=0;S<a._features.length;S++){const y=a._features[S];y==null||y.createTable==null||y.createTable(a)}return a}function QC(){return e=>Ee(()=>[e.options.data],n=>{const r={rows:[],flatRows:[],rowsById:{}},i=function(a,l,c){l===void 0&&(l=0);const d=[];for(let v=0;v<a.length;v++){const w=Bc(e,e._getRowId(a[v],v,c),a[v],v,l,void 0,c?.id);if(r.flatRows.push(w),r.rowsById[w.id]=w,d.push(w),e.options.getSubRows){var h;w.originalSubRows=e.options.getSubRows(a[v],v),(h=w.originalSubRows)!=null&&h.length&&(w.subRows=i(w.originalSubRows,l+1,w))}}return d};return r.rows=i(n),r},Re(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function ZC(e){const n=[],r=i=>{var a;n.push(i),(a=i.subRows)!=null&&a.length&&i.getIsExpanded()&&i.subRows.forEach(r)};return e.rows.forEach(r),{rows:n,flatRows:e.flatRows,rowsById:e.rowsById}}function JC(e,n,r){return r.options.filterFromLeafRows?eE(e,n,r):tE(e,n,r)}function eE(e,n,r){var i;const a=[],l={},c=(i=r.options.maxLeafRowFilterDepth)!=null?i:100,d=function(h,v){v===void 0&&(v=0);const w=[];for(let S=0;S<h.length;S++){var m;let y=h[S];const P=Bc(r,y.id,y.original,y.index,y.depth,void 0,y.parentId);if(P.columnFilters=y.columnFilters,(m=y.subRows)!=null&&m.length&&v<c){if(P.subRows=d(y.subRows,v+1),y=P,n(y)&&!P.subRows.length){w.push(y),l[y.id]=y,a.push(y);continue}if(n(y)||P.subRows.length){w.push(y),l[y.id]=y,a.push(y);continue}}else y=P,n(y)&&(w.push(y),l[y.id]=y,a.push(y))}return w};return{rows:d(e),flatRows:a,rowsById:l}}function tE(e,n,r){var i;const a=[],l={},c=(i=r.options.maxLeafRowFilterDepth)!=null?i:100,d=function(h,v){v===void 0&&(v=0);const w=[];for(let S=0;S<h.length;S++){let y=h[S];if(n(y)){var m;if((m=y.subRows)!=null&&m.length&&v<c){const x=Bc(r,y.id,y.original,y.index,y.depth,void 0,y.parentId);x.subRows=d(y.subRows,v+1),y=x}w.push(y),a.push(y),l[y.id]=y}}return w};return{rows:d(e),flatRows:a,rowsById:l}}function nE(){return e=>Ee(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(n,r,i)=>{if(!n.rows.length||!(r!=null&&r.length)&&!i){for(let S=0;S<n.flatRows.length;S++)n.flatRows[S].columnFilters={},n.flatRows[S].columnFiltersMeta={};return n}const a=[],l=[];(r??[]).forEach(S=>{var y;const P=e.getColumn(S.id);if(!P)return;const x=P.getFilterFn();x&&a.push({id:S.id,filterFn:x,resolvedValue:(y=x.resolveFilterValue==null?void 0:x.resolveFilterValue(S.value))!=null?y:S.value})});const c=(r??[]).map(S=>S.id),d=e.getGlobalFilterFn(),h=e.getAllLeafColumns().filter(S=>S.getCanGlobalFilter());i&&d&&h.length&&(c.push("__global__"),h.forEach(S=>{var y;l.push({id:S.id,filterFn:d,resolvedValue:(y=d.resolveFilterValue==null?void 0:d.resolveFilterValue(i))!=null?y:i})}));let v,w;for(let S=0;S<n.flatRows.length;S++){const y=n.flatRows[S];if(y.columnFilters={},a.length)for(let P=0;P<a.length;P++){v=a[P];const x=v.id;y.columnFilters[x]=v.filterFn(y,x,v.resolvedValue,R=>{y.columnFiltersMeta[x]=R})}if(l.length){for(let P=0;P<l.length;P++){w=l[P];const x=w.id;if(w.filterFn(y,x,w.resolvedValue,R=>{y.columnFiltersMeta[x]=R})){y.columnFilters.__global__=!0;break}}y.columnFilters.__global__!==!0&&(y.columnFilters.__global__=!1)}}const m=S=>{for(let y=0;y<c.length;y++)if(S.columnFilters[c[y]]===!1)return!1;return!0};return JC(n.rows,m,e)},Re(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function rE(e){return n=>Ee(()=>[n.getState().pagination,n.getPrePaginationRowModel(),n.options.paginateExpandedRows?void 0:n.getState().expanded],(r,i)=>{if(!i.rows.length)return i;const{pageSize:a,pageIndex:l}=r;let{rows:c,flatRows:d,rowsById:h}=i;const v=a*l,w=v+a;c=c.slice(v,w);let m;n.options.paginateExpandedRows?m={rows:c,flatRows:d,rowsById:h}:m=ZC({rows:c,flatRows:d,rowsById:h}),m.flatRows=[];const S=y=>{m.flatRows.push(y),y.subRows.length&&y.subRows.forEach(S)};return m.rows.forEach(S),m},Re(n.options,"debugTable"))}function oE(){return e=>Ee(()=>[e.getState().sorting,e.getPreSortedRowModel()],(n,r)=>{if(!r.rows.length||!(n!=null&&n.length))return r;const i=e.getState().sorting,a=[],l=i.filter(h=>{var v;return(v=e.getColumn(h.id))==null?void 0:v.getCanSort()}),c={};l.forEach(h=>{const v=e.getColumn(h.id);v&&(c[h.id]={sortUndefined:v.columnDef.sortUndefined,invertSorting:v.columnDef.invertSorting,sortingFn:v.getSortingFn()})});const d=h=>{const v=h.map(w=>({...w}));return v.sort((w,m)=>{for(let y=0;y<l.length;y+=1){var S;const P=l[y],x=c[P.id],R=x.sortUndefined,T=(S=P?.desc)!=null?S:!1;let _=0;if(R){const I=w.getValue(P.id),N=m.getValue(P.id),L=I===void 0,U=N===void 0;if(L||U){if(R==="first")return L?-1:1;if(R==="last")return L?1:-1;_=L&&U?0:L?R:-R}}if(_===0&&(_=x.sortingFn(w,m,P.id)),_!==0)return T&&(_*=-1),x.invertSorting&&(_*=-1),_}return w.index-m.index}),v.forEach(w=>{var m;a.push(w),(m=w.subRows)!=null&&m.length&&(w.subRows=d(w.subRows))}),v};return{rows:d(r.rows),flatRows:a,rowsById:r.rowsById}},Re(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
   * react-table
   *
   * Copyright (c) TanStack
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE.md file in the root directory of this source tree.
   *
   * @license MIT
   */function uc(e,n){return e?iE(e)?p.createElement(e,n):e:null}function iE(e){return sE(e)||typeof e=="function"||lE(e)}function sE(e){return typeof e=="function"&&(()=>{const n=Object.getPrototypeOf(e);return n.prototype&&n.prototype.isReactComponent})()}function lE(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function aE(e){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=p.useState(()=>({current:YC(n)})),[i,a]=p.useState(()=>r.current.initialState);return r.current.setOptions(l=>({...l,...e,state:{...i,...e.state},onStateChange:c=>{a(c),e.onStateChange==null||e.onStateChange(c)}})),r.current}function zm(e){var n,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(n=0;n<e.length;n++)e[n]&&(r=zm(e[n]))&&(i&&(i+=" "),i+=r);else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function gt(){for(var e,n,r=0,i="";r<arguments.length;)(e=arguments[r++])&&(n=zm(e))&&(i&&(i+=" "),i+=n);return i}var Os={exports:{}},Ve={},Ms={exports:{}},fr={},Hg;function Hm(){if(Hg)return fr;Hg=1;function e(){var l={};return l["align-content"]=!1,l["align-items"]=!1,l["align-self"]=!1,l["alignment-adjust"]=!1,l["alignment-baseline"]=!1,l.all=!1,l["anchor-point"]=!1,l.animation=!1,l["animation-delay"]=!1,l["animation-direction"]=!1,l["animation-duration"]=!1,l["animation-fill-mode"]=!1,l["animation-iteration-count"]=!1,l["animation-name"]=!1,l["animation-play-state"]=!1,l["animation-timing-function"]=!1,l.azimuth=!1,l["backface-visibility"]=!1,l.background=!0,l["background-attachment"]=!0,l["background-clip"]=!0,l["background-color"]=!0,l["background-image"]=!0,l["background-origin"]=!0,l["background-position"]=!0,l["background-repeat"]=!0,l["background-size"]=!0,l["baseline-shift"]=!1,l.binding=!1,l.bleed=!1,l["bookmark-label"]=!1,l["bookmark-level"]=!1,l["bookmark-state"]=!1,l.border=!0,l["border-bottom"]=!0,l["border-bottom-color"]=!0,l["border-bottom-left-radius"]=!0,l["border-bottom-right-radius"]=!0,l["border-bottom-style"]=!0,l["border-bottom-width"]=!0,l["border-collapse"]=!0,l["border-color"]=!0,l["border-image"]=!0,l["border-image-outset"]=!0,l["border-image-repeat"]=!0,l["border-image-slice"]=!0,l["border-image-source"]=!0,l["border-image-width"]=!0,l["border-left"]=!0,l["border-left-color"]=!0,l["border-left-style"]=!0,l["border-left-width"]=!0,l["border-radius"]=!0,l["border-right"]=!0,l["border-right-color"]=!0,l["border-right-style"]=!0,l["border-right-width"]=!0,l["border-spacing"]=!0,l["border-style"]=!0,l["border-top"]=!0,l["border-top-color"]=!0,l["border-top-left-radius"]=!0,l["border-top-right-radius"]=!0,l["border-top-style"]=!0,l["border-top-width"]=!0,l["border-width"]=!0,l.bottom=!1,l["box-decoration-break"]=!0,l["box-shadow"]=!0,l["box-sizing"]=!0,l["box-snap"]=!0,l["box-suppress"]=!0,l["break-after"]=!0,l["break-before"]=!0,l["break-inside"]=!0,l["caption-side"]=!1,l.chains=!1,l.clear=!0,l.clip=!1,l["clip-path"]=!1,l["clip-rule"]=!1,l.color=!0,l["color-interpolation-filters"]=!0,l["column-count"]=!1,l["column-fill"]=!1,l["column-gap"]=!1,l["column-rule"]=!1,l["column-rule-color"]=!1,l["column-rule-style"]=!1,l["column-rule-width"]=!1,l["column-span"]=!1,l["column-width"]=!1,l.columns=!1,l.contain=!1,l.content=!1,l["counter-increment"]=!1,l["counter-reset"]=!1,l["counter-set"]=!1,l.crop=!1,l.cue=!1,l["cue-after"]=!1,l["cue-before"]=!1,l.cursor=!1,l.direction=!1,l.display=!0,l["display-inside"]=!0,l["display-list"]=!0,l["display-outside"]=!0,l["dominant-baseline"]=!1,l.elevation=!1,l["empty-cells"]=!1,l.filter=!1,l.flex=!1,l["flex-basis"]=!1,l["flex-direction"]=!1,l["flex-flow"]=!1,l["flex-grow"]=!1,l["flex-shrink"]=!1,l["flex-wrap"]=!1,l.float=!1,l["float-offset"]=!1,l["flood-color"]=!1,l["flood-opacity"]=!1,l["flow-from"]=!1,l["flow-into"]=!1,l.font=!0,l["font-family"]=!0,l["font-feature-settings"]=!0,l["font-kerning"]=!0,l["font-language-override"]=!0,l["font-size"]=!0,l["font-size-adjust"]=!0,l["font-stretch"]=!0,l["font-style"]=!0,l["font-synthesis"]=!0,l["font-variant"]=!0,l["font-variant-alternates"]=!0,l["font-variant-caps"]=!0,l["font-variant-east-asian"]=!0,l["font-variant-ligatures"]=!0,l["font-variant-numeric"]=!0,l["font-variant-position"]=!0,l["font-weight"]=!0,l.grid=!1,l["grid-area"]=!1,l["grid-auto-columns"]=!1,l["grid-auto-flow"]=!1,l["grid-auto-rows"]=!1,l["grid-column"]=!1,l["grid-column-end"]=!1,l["grid-column-start"]=!1,l["grid-row"]=!1,l["grid-row-end"]=!1,l["grid-row-start"]=!1,l["grid-template"]=!1,l["grid-template-areas"]=!1,l["grid-template-columns"]=!1,l["grid-template-rows"]=!1,l["hanging-punctuation"]=!1,l.height=!0,l.hyphens=!1,l.icon=!1,l["image-orientation"]=!1,l["image-resolution"]=!1,l["ime-mode"]=!1,l["initial-letters"]=!1,l["inline-box-align"]=!1,l["justify-content"]=!1,l["justify-items"]=!1,l["justify-self"]=!1,l.left=!1,l["letter-spacing"]=!0,l["lighting-color"]=!0,l["line-box-contain"]=!1,l["line-break"]=!1,l["line-grid"]=!1,l["line-height"]=!1,l["line-snap"]=!1,l["line-stacking"]=!1,l["line-stacking-ruby"]=!1,l["line-stacking-shift"]=!1,l["line-stacking-strategy"]=!1,l["list-style"]=!0,l["list-style-image"]=!0,l["list-style-position"]=!0,l["list-style-type"]=!0,l.margin=!0,l["margin-bottom"]=!0,l["margin-left"]=!0,l["margin-right"]=!0,l["margin-top"]=!0,l["marker-offset"]=!1,l["marker-side"]=!1,l.marks=!1,l.mask=!1,l["mask-box"]=!1,l["mask-box-outset"]=!1,l["mask-box-repeat"]=!1,l["mask-box-slice"]=!1,l["mask-box-source"]=!1,l["mask-box-width"]=!1,l["mask-clip"]=!1,l["mask-image"]=!1,l["mask-origin"]=!1,l["mask-position"]=!1,l["mask-repeat"]=!1,l["mask-size"]=!1,l["mask-source-type"]=!1,l["mask-type"]=!1,l["max-height"]=!0,l["max-lines"]=!1,l["max-width"]=!0,l["min-height"]=!0,l["min-width"]=!0,l["move-to"]=!1,l["nav-down"]=!1,l["nav-index"]=!1,l["nav-left"]=!1,l["nav-right"]=!1,l["nav-up"]=!1,l["object-fit"]=!1,l["object-position"]=!1,l.opacity=!1,l.order=!1,l.orphans=!1,l.outline=!1,l["outline-color"]=!1,l["outline-offset"]=!1,l["outline-style"]=!1,l["outline-width"]=!1,l.overflow=!1,l["overflow-wrap"]=!1,l["overflow-x"]=!1,l["overflow-y"]=!1,l.padding=!0,l["padding-bottom"]=!0,l["padding-left"]=!0,l["padding-right"]=!0,l["padding-top"]=!0,l.page=!1,l["page-break-after"]=!1,l["page-break-before"]=!1,l["page-break-inside"]=!1,l["page-policy"]=!1,l.pause=!1,l["pause-after"]=!1,l["pause-before"]=!1,l.perspective=!1,l["perspective-origin"]=!1,l.pitch=!1,l["pitch-range"]=!1,l["play-during"]=!1,l.position=!1,l["presentation-level"]=!1,l.quotes=!1,l["region-fragment"]=!1,l.resize=!1,l.rest=!1,l["rest-after"]=!1,l["rest-before"]=!1,l.richness=!1,l.right=!1,l.rotation=!1,l["rotation-point"]=!1,l["ruby-align"]=!1,l["ruby-merge"]=!1,l["ruby-position"]=!1,l["shape-image-threshold"]=!1,l["shape-outside"]=!1,l["shape-margin"]=!1,l.size=!1,l.speak=!1,l["speak-as"]=!1,l["speak-header"]=!1,l["speak-numeral"]=!1,l["speak-punctuation"]=!1,l["speech-rate"]=!1,l.stress=!1,l["string-set"]=!1,l["tab-size"]=!1,l["table-layout"]=!1,l["text-align"]=!0,l["text-align-last"]=!0,l["text-combine-upright"]=!0,l["text-decoration"]=!0,l["text-decoration-color"]=!0,l["text-decoration-line"]=!0,l["text-decoration-skip"]=!0,l["text-decoration-style"]=!0,l["text-emphasis"]=!0,l["text-emphasis-color"]=!0,l["text-emphasis-position"]=!0,l["text-emphasis-style"]=!0,l["text-height"]=!0,l["text-indent"]=!0,l["text-justify"]=!0,l["text-orientation"]=!0,l["text-overflow"]=!0,l["text-shadow"]=!0,l["text-space-collapse"]=!0,l["text-transform"]=!0,l["text-underline-position"]=!0,l["text-wrap"]=!0,l.top=!1,l.transform=!1,l["transform-origin"]=!1,l["transform-style"]=!1,l.transition=!1,l["transition-delay"]=!1,l["transition-duration"]=!1,l["transition-property"]=!1,l["transition-timing-function"]=!1,l["unicode-bidi"]=!1,l["vertical-align"]=!1,l.visibility=!1,l["voice-balance"]=!1,l["voice-duration"]=!1,l["voice-family"]=!1,l["voice-pitch"]=!1,l["voice-range"]=!1,l["voice-rate"]=!1,l["voice-stress"]=!1,l["voice-volume"]=!1,l.volume=!1,l["white-space"]=!1,l.widows=!1,l.width=!0,l["will-change"]=!1,l["word-break"]=!0,l["word-spacing"]=!0,l["word-wrap"]=!0,l["wrap-flow"]=!1,l["wrap-through"]=!1,l["writing-mode"]=!1,l["z-index"]=!1,l}function n(l,c,d){}function r(l,c,d){}var i=/javascript\s*\:/img;function a(l,c){return i.test(c)?"":c}return fr.whiteList=e(),fr.getDefaultWhiteList=e,fr.onAttr=n,fr.onIgnoreAttr=r,fr.safeAttrValue=a,fr}var $u,Ug;function Um(){return Ug||(Ug=1,$u={indexOf:function(e,n){var r,i;if(Array.prototype.indexOf)return e.indexOf(n);for(r=0,i=e.length;r<i;r++)if(e[r]===n)return r;return-1},forEach:function(e,n,r){var i,a;if(Array.prototype.forEach)return e.forEach(n,r);for(i=0,a=e.length;i<a;i++)n.call(r,e[i],i,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}}),$u}var Nu,Bg;function uE(){if(Bg)return Nu;Bg=1;var e=Um();function n(r,i){r=e.trimRight(r),r[r.length-1]!==";"&&(r+=";");var a=r.length,l=!1,c=0,d=0,h="";function v(){if(!l){var S=e.trim(r.slice(c,d)),y=S.indexOf(":");if(y!==-1){var P=e.trim(S.slice(0,y)),x=e.trim(S.slice(y+1));if(P){var R=i(c,h.length,P,x,S);R&&(h+=R+"; ")}}}c=d+1}for(;d<a;d++){var w=r[d];if(w==="/"&&r[d+1]==="*"){var m=r.indexOf("*/",d+2);if(m===-1)break;d=m+1,c=d+1,l=!1}else w==="("?l=!0:w===")"?l=!1:w===";"?l||v():w===`
`&&v()}return e.trim(h)}return Nu=n,Nu}var bu,Wg;function cE(){if(Wg)return bu;Wg=1;var e=Hm(),n=uE();Um();function r(l){return l==null}function i(l){var c={};for(var d in l)c[d]=l[d];return c}function a(l){l=i(l||{}),l.whiteList=l.whiteList||e.whiteList,l.onAttr=l.onAttr||e.onAttr,l.onIgnoreAttr=l.onIgnoreAttr||e.onIgnoreAttr,l.safeAttrValue=l.safeAttrValue||e.safeAttrValue,this.options=l}return a.prototype.process=function(l){if(l=l||"",l=l.toString(),!l)return"";var c=this,d=c.options,h=d.whiteList,v=d.onAttr,w=d.onIgnoreAttr,m=d.safeAttrValue,S=n(l,function(y,P,x,R,T){var _=h[x],I=!1;if(_===!0?I=_:typeof _=="function"?I=_(R):_ instanceof RegExp&&(I=_.test(R)),I!==!0&&(I=!1),R=m(x,R),!!R){var N={position:P,sourcePosition:y,source:T,isWhite:I};if(I){var L=v(x,R,N);return r(L)?x+":"+R:L}else{var L=w(x,R,N);if(!r(L))return L}}});return S},bu=a,bu}var Gg;function cc(){return Gg||(Gg=1,(function(e,n){var r=Hm(),i=cE();function a(c,d){var h=new i(d);return h.process(c)}n=e.exports=a,n.FilterCSS=i;for(var l in r)n[l]=r[l];typeof window<"u"&&(window.filterCSS=e.exports)})(Ms,Ms.exports)),Ms.exports}var Au,Kg;function Xc(){return Kg||(Kg=1,Au={indexOf:function(e,n){var r,i;if(Array.prototype.indexOf)return e.indexOf(n);for(r=0,i=e.length;r<i;r++)if(e[r]===n)return r;return-1},forEach:function(e,n,r){var i,a;if(Array.prototype.forEach)return e.forEach(n,r);for(i=0,a=e.length;i<a;i++)n.call(r,e[i],i,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var n=/\s|\n|\t/,r=n.exec(e);return r?r.index:-1}}),Au}var Xg;function Bm(){if(Xg)return Ve;Xg=1;var e=cc().FilterCSS,n=cc().getDefaultWhiteList,r=Xc();function i(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var a=new e;function l(B,q,$){}function c(B,q,$){}function d(B,q,$){}function h(B,q,$){}function v(B){return B.replace(m,"&lt;").replace(S,"&gt;")}function w(B,q,$,F){if($=Q($),q==="href"||q==="src"){if($=r.trim($),$==="#")return"#";if(!($.substr(0,7)==="http://"||$.substr(0,8)==="https://"||$.substr(0,7)==="mailto:"||$.substr(0,4)==="tel:"||$.substr(0,11)==="data:image/"||$.substr(0,6)==="ftp://"||$.substr(0,2)==="./"||$.substr(0,3)==="../"||$[0]==="#"||$[0]==="/"))return""}else if(q==="background"){if(_.lastIndex=0,_.test($))return""}else if(q==="style"){if(I.lastIndex=0,I.test($)||(N.lastIndex=0,N.test($)&&(_.lastIndex=0,_.test($))))return"";F!==!1&&(F=F||a,$=F.process($))}return $=ee($),$}var m=/</g,S=/>/g,y=/"/g,P=/&quot;/g,x=/&#([a-zA-Z0-9]*);?/gim,R=/&colon;?/gim,T=/&newline;?/gim,_=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,I=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,N=/u\s*r\s*l\s*\(.*/gi;function L(B){return B.replace(y,"&quot;")}function U(B){return B.replace(P,'"')}function b(B){return B.replace(x,function($,F){return F[0]==="x"||F[0]==="X"?String.fromCharCode(parseInt(F.substr(1),16)):String.fromCharCode(parseInt(F,10))})}function A(B){return B.replace(R,":").replace(T," ")}function X(B){for(var q="",$=0,F=B.length;$<F;$++)q+=B.charCodeAt($)<32?" ":B.charAt($);return r.trim(q)}function Q(B){return B=U(B),B=b(B),B=A(B),B=X(B),B}function ee(B){return B=L(B),B=v(B),B}function re(){return""}function Z(B,q){typeof q!="function"&&(q=function(){});var $=!Array.isArray(B);function F(H){return $?!0:r.indexOf(B,H)!==-1}var G=[],O=!1;return{onIgnoreTag:function(H,ae,ce){if(F(H))if(ce.isClosing){var Y="[/removed]",se=ce.position+Y.length;return G.push([O!==!1?O:ce.position,se]),O=!1,Y}else return O||(O=ce.position),"[removed]";else return q(H,ae,ce)},remove:function(H){var ae="",ce=0;return r.forEach(G,function(Y){ae+=H.slice(ce,Y[0]),ce=Y[1]}),ae+=H.slice(ce),ae}}}function W(B){for(var q="",$=0;$<B.length;){var F=B.indexOf("\x3C!--",$);if(F===-1){q+=B.slice($);break}q+=B.slice($,F);var G=B.indexOf("-->",F);if(G===-1)break;$=G+3}return q}function ue(B){var q=B.split("");return q=q.filter(function($){var F=$.charCodeAt(0);return F===127?!1:F<=31?F===10||F===13:!0}),q.join("")}return Ve.whiteList=i(),Ve.getDefaultWhiteList=i,Ve.onTag=l,Ve.onIgnoreTag=c,Ve.onTagAttr=d,Ve.onIgnoreTagAttr=h,Ve.safeAttrValue=w,Ve.escapeHtml=v,Ve.escapeQuote=L,Ve.unescapeQuote=U,Ve.escapeHtmlEntities=b,Ve.escapeDangerHtml5Entities=A,Ve.clearNonPrintableCharacter=X,Ve.friendlyAttrValue=Q,Ve.escapeAttrValue=ee,Ve.onIgnoreTagStripAll=re,Ve.StripTagBody=Z,Ve.stripCommentTag=W,Ve.stripBlankChar=ue,Ve.attributeWrapSign='"',Ve.cssFilter=a,Ve.getDefaultCSSWhiteList=n,Ve}var ks={},qg;function Wm(){if(qg)return ks;qg=1;var e=Xc();function n(m){var S=e.spaceIndex(m),y;return S===-1?y=m.slice(1,-1):y=m.slice(1,S+1),y=e.trim(y).toLowerCase(),y.slice(0,1)==="/"&&(y=y.slice(1)),y.slice(-1)==="/"&&(y=y.slice(0,-1)),y}function r(m){return m.slice(0,2)==="</"}function i(m,S,y){var P="",x=0,R=!1,T=!1,_=0,I=m.length,N="",L="";e:for(_=0;_<I;_++){var U=m.charAt(_);if(R===!1){if(U==="<"){R=_;continue}}else if(T===!1){if(U==="<"){P+=y(m.slice(x,_)),R=_,x=_;continue}if(U===">"||_===I-1){P+=y(m.slice(x,R)),L=m.slice(R,_+1),N=n(L),P+=S(R,P.length,N,L,r(L)),x=_+1,R=!1;continue}if(U==='"'||U==="'")for(var b=1,A=m.charAt(_-b);A.trim()===""||A==="=";){if(A==="="){T=U;continue e}A=m.charAt(_-++b)}}else if(U===T){T=!1;continue}}return x<I&&(P+=y(m.substr(x))),P}var a=/[^a-zA-Z0-9\\_:.-]/gim;function l(m,S){var y=0,P=0,x=[],R=!1,T=m.length;function _(b,A){if(b=e.trim(b),b=b.replace(a,"").toLowerCase(),!(b.length<1)){var X=S(b,A||"");X&&x.push(X)}}for(var I=0;I<T;I++){var N=m.charAt(I),L,U;if(R===!1&&N==="="){R=m.slice(y,I),y=I+1,P=m.charAt(y)==='"'||m.charAt(y)==="'"?y:d(m,I+1);continue}if(R!==!1&&I===P){if(U=m.indexOf(N,I+1),U===-1)break;L=e.trim(m.slice(P+1,U)),_(R,L),R=!1,I=U,y=I+1;continue}if(/\s|\n|\t/.test(N))if(m=m.replace(/\s|\n|\t/g," "),R===!1)if(U=c(m,I),U===-1){L=e.trim(m.slice(y,I)),_(L),R=!1,y=I+1;continue}else{I=U-1;continue}else if(U=h(m,I-1),U===-1){L=e.trim(m.slice(y,I)),L=w(L),_(R,L),R=!1,y=I+1;continue}else continue}return y<m.length&&(R===!1?_(m.slice(y)):_(R,w(e.trim(m.slice(y))))),e.trim(x.join(" "))}function c(m,S){for(;S<m.length;S++){var y=m[S];if(y!==" ")return y==="="?S:-1}}function d(m,S){for(;S<m.length;S++){var y=m[S];if(y!==" ")return y==="'"||y==='"'?S:-1}}function h(m,S){for(;S>0;S--){var y=m[S];if(y!==" ")return y==="="?S:-1}}function v(m){return m[0]==='"'&&m[m.length-1]==='"'||m[0]==="'"&&m[m.length-1]==="'"}function w(m){return v(m)?m.substr(1,m.length-2):m}return ks.parseTag=i,ks.parseAttr=l,ks}var Lu,Yg;function dE(){if(Yg)return Lu;Yg=1;var e=cc().FilterCSS,n=Bm(),r=Wm(),i=r.parseTag,a=r.parseAttr,l=Xc();function c(m){return m==null}function d(m){var S=l.spaceIndex(m);if(S===-1)return{html:"",closing:m[m.length-2]==="/"};m=l.trim(m.slice(S+1,-1));var y=m[m.length-1]==="/";return y&&(m=l.trim(m.slice(0,-1))),{html:m,closing:y}}function h(m){var S={};for(var y in m)S[y]=m[y];return S}function v(m){var S={};for(var y in m)Array.isArray(m[y])?S[y.toLowerCase()]=m[y].map(function(P){return P.toLowerCase()}):S[y.toLowerCase()]=m[y];return S}function w(m){m=h(m||{}),m.stripIgnoreTag&&(m.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),m.onIgnoreTag=n.onIgnoreTagStripAll),m.whiteList||m.allowList?m.whiteList=v(m.whiteList||m.allowList):m.whiteList=n.whiteList,this.attributeWrapSign=m.singleQuotedAttributeValue===!0?"'":n.attributeWrapSign,m.onTag=m.onTag||n.onTag,m.onTagAttr=m.onTagAttr||n.onTagAttr,m.onIgnoreTag=m.onIgnoreTag||n.onIgnoreTag,m.onIgnoreTagAttr=m.onIgnoreTagAttr||n.onIgnoreTagAttr,m.safeAttrValue=m.safeAttrValue||n.safeAttrValue,m.escapeHtml=m.escapeHtml||n.escapeHtml,this.options=m,m.css===!1?this.cssFilter=!1:(m.css=m.css||{},this.cssFilter=new e(m.css))}return w.prototype.process=function(m){if(m=m||"",m=m.toString(),!m)return"";var S=this,y=S.options,P=y.whiteList,x=y.onTag,R=y.onIgnoreTag,T=y.onTagAttr,_=y.onIgnoreTagAttr,I=y.safeAttrValue,N=y.escapeHtml,L=S.attributeWrapSign,U=S.cssFilter;y.stripBlankChar&&(m=n.stripBlankChar(m)),y.allowCommentTag||(m=n.stripCommentTag(m));var b=!1;y.stripIgnoreTagBody&&(b=n.StripTagBody(y.stripIgnoreTagBody,R),R=b.onIgnoreTag);var A=i(m,function(X,Q,ee,re,Z){var W={sourcePosition:X,position:Q,isClosing:Z,isWhite:Object.prototype.hasOwnProperty.call(P,ee)},ue=x(ee,re,W);if(!c(ue))return ue;if(W.isWhite){if(W.isClosing)return"</"+ee+">";var B=d(re),q=P[ee],$=a(B.html,function(F,G){var O=l.indexOf(q,F)!==-1,H=T(ee,F,G,O);return c(H)?O?(G=I(ee,F,G,U),G?F+"="+L+G+L:F):(H=_(ee,F,G,O),c(H)?void 0:H):H});return re="<"+ee,$&&(re+=" "+$),B.closing&&(re+=" /"),re+=">",re}else return ue=R(ee,re,W),c(ue)?N(re):ue},N);return b&&(A=b.remove(A)),A},Lu=w,Lu}var Qg;function fE(){return Qg||(Qg=1,(function(e,n){var r=Bm(),i=Wm(),a=dE();function l(d,h){var v=new a(h);return v.process(d)}n=e.exports=l,n.filterXSS=l,n.FilterXSS=a,(function(){for(var d in r)n[d]=r[d];for(var h in i)n[h]=i[h]})(),typeof window<"u"&&(window.filterXSS=e.exports);function c(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}c()&&(self.filterXSS=e.exports)})(Os,Os.exports)),Os.exports}var pE=fE();const gE=ro(pE);function hE(e){const[n,r]=p.useState(e),i=n==="dark"?"light":"dark";return p.useEffect(()=>{const a=window.document.documentElement;a.classList.remove(i),a.classList.add(n)},[n,i]),[i,r]}function Yo(e,n,r){const[i,a]=p.useState(()=>{if(typeof window>"u")return n;try{const c=window.localStorage.getItem(e);return c?r?r(JSON.parse(c)):JSON.parse(c):n}catch(c){return console.log(c),n}});return[i,c=>{try{const d=c instanceof Function?c(i):c;a(d),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(d))}catch(d){console.log(d)}}]}/**
   * match-sorter-utils
   *
   * Copyright (c) TanStack
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE.md file in the root directory of this source tree.
   *
   * @license MIT
   */const Gm={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",Ĳ:"IJ",ĳ:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ŉ:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},mE=Object.keys(Gm).join("|"),vE=new RegExp(mE,"g");function yE(e){return e.replace(vE,n=>Gm[n])}/**
 * @name match-sorter
 * @license MIT license.
 * @copyright (c) 2099 Kent C. Dodds
 * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
 */const Et={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function wE(e,n,r){var i;if(r=r||{},r.threshold=(i=r.threshold)!=null?i:Et.MATCHES,!r.accessors){const c=Zg(e,n,r);return{rankedValue:e,rank:c,accessorIndex:-1,accessorThreshold:r.threshold,passed:c>=r.threshold}}const a=EE(e,r.accessors),l={rankedValue:e,rank:Et.NO_MATCH,accessorIndex:-1,accessorThreshold:r.threshold,passed:!1};for(let c=0;c<a.length;c++){const d=a[c];let h=Zg(d.itemValue,n,r);const{minRanking:v,maxRanking:w,threshold:m=r.threshold}=d.attributes;h<v&&h>=Et.MATCHES?h=v:h>w&&(h=w),h=Math.min(h,w),h>=m&&h>l.rank&&(l.rank=h,l.passed=!0,l.accessorIndex=c,l.accessorThreshold=m,l.rankedValue=d.itemValue)}return l}function Zg(e,n,r){return e=Jg(e,r),n=Jg(n,r),n.length>e.length?Et.NO_MATCH:e===n?Et.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),n=n.toLowerCase(),e===n?Et.EQUAL:e.startsWith(n)?Et.STARTS_WITH:e.includes(` ${n}`)?Et.WORD_STARTS_WITH:e.includes(n)?Et.CONTAINS:n.length===1?Et.NO_MATCH:SE(e).includes(n)?Et.ACRONYM:xE(e,n))}function SE(e){let n="";return e.split(" ").forEach(i=>{i.split("-").forEach(l=>{n+=l.substr(0,1)})}),n}function xE(e,n){let r=0,i=0;function a(h,v,w){for(let m=w,S=v.length;m<S;m++)if(v[m]===h)return r+=1,m+1;return-1}function l(h){const v=1/h,w=r/n.length;return Et.MATCHES+w*v}const c=a(n[0],e,0);if(c<0)return Et.NO_MATCH;i=c;for(let h=1,v=n.length;h<v;h++){const w=n[h];if(i=a(w,e,i),!(i>-1))return Et.NO_MATCH}const d=i-c;return l(d)}function Jg(e,n){let{keepDiacritics:r}=n;return e=`${e}`,r||(e=yE(e)),e}function CE(e,n){let r=n;typeof n=="object"&&(r=n.accessor);const i=r(e);return i==null?[]:Array.isArray(i)?i:[String(i)]}function EE(e,n){const r=[];for(let i=0,a=n.length;i<a;i++){const l=n[i],c=RE(l),d=CE(e,l);for(let h=0,v=d.length;h<v;h++)r.push({itemValue:d[h],attributes:c})}return r}const eh={maxRanking:1/0,minRanking:-1/0};function RE(e){return typeof e=="function"?eh:{...eh,...e}}var Fu={exports:{}},th;function PE(){return th||(th=1,(function(e){(function(n){var r=I(),i=N(),a=L(),l=U(),c={imagePlaceholder:void 0,cacheBust:!1},d={toSvg:h,toPng:w,toJpeg:m,toBlob:S,toPixelData:v,impl:{fontFaces:a,images:l,util:r,inliner:i,options:{}}};e.exports=d;function h(b,A){return A=A||{},y(A),Promise.resolve(b).then(function(Q){return x(Q,A.filter,!0)}).then(R).then(T).then(X).then(function(Q){return _(Q,A.width||r.width(b),A.height||r.height(b))});function X(Q){return A.bgcolor&&(Q.style.backgroundColor=A.bgcolor),A.width&&(Q.style.width=A.width+"px"),A.height&&(Q.style.height=A.height+"px"),A.style&&Object.keys(A.style).forEach(function(ee){Q.style[ee]=A.style[ee]}),Q}}function v(b,A){return P(b,A||{}).then(function(X){return X.getContext("2d").getImageData(0,0,r.width(b),r.height(b)).data})}function w(b,A){return P(b,A||{}).then(function(X){return X.toDataURL()})}function m(b,A){return A=A||{},P(b,A).then(function(X){return X.toDataURL("image/jpeg",A.quality||1)})}function S(b,A){return P(b,A||{}).then(r.canvasToBlob)}function y(b){typeof b.imagePlaceholder>"u"?d.impl.options.imagePlaceholder=c.imagePlaceholder:d.impl.options.imagePlaceholder=b.imagePlaceholder,typeof b.cacheBust>"u"?d.impl.options.cacheBust=c.cacheBust:d.impl.options.cacheBust=b.cacheBust}function P(b,A){return h(b,A).then(r.makeImage).then(r.delay(100)).then(function(Q){var ee=X(b);return ee.getContext("2d").drawImage(Q,0,0),ee});function X(Q){var ee=document.createElement("canvas");if(ee.width=A.width||r.width(Q),ee.height=A.height||r.height(Q),A.bgcolor){var re=ee.getContext("2d");re.fillStyle=A.bgcolor,re.fillRect(0,0,ee.width,ee.height)}return ee}}function x(b,A,X){if(!X&&A&&!A(b))return Promise.resolve();return Promise.resolve(b).then(Q).then(function(Z){return ee(b,Z,A)}).then(function(Z){return re(b,Z)});function Q(Z){return Z instanceof HTMLCanvasElement?r.makeImage(Z.toDataURL()):Z.cloneNode(!1)}function ee(Z,W,ue){var B=Z.childNodes;if(B.length===0)return Promise.resolve(W);return q(W,r.asArray(B),ue).then(function(){return W});function q($,F,G){var O=Promise.resolve();return F.forEach(function(H){O=O.then(function(){return x(H,G)}).then(function(ae){ae&&$.appendChild(ae)})}),O}}function re(Z,W){if(!(W instanceof Element))return W;return Promise.resolve().then(ue).then(B).then(q).then($).then(function(){return W});function ue(){F(window.getComputedStyle(Z),W.style);function F(G,O){G.cssText?O.cssText=G.cssText:H(G,O);function H(ae,ce){r.asArray(ae).forEach(function(Y){ce.setProperty(Y,ae.getPropertyValue(Y),ae.getPropertyPriority(Y))})}}}function B(){[":before",":after"].forEach(function(G){F(G)});function F(G){var O=window.getComputedStyle(Z,G),H=O.getPropertyValue("content");if(H===""||H==="none")return;var ae=r.uid();W.className=W.className+" "+ae;var ce=document.createElement("style");ce.appendChild(Y(ae,G,O)),W.appendChild(ce);function Y(se,K,oe){var te="."+se+":"+K,de=oe.cssText?pe(oe):Pe(oe);return document.createTextNode(te+"{"+de+"}");function pe(we){var he=we.getPropertyValue("content");return we.cssText+" content: "+he+";"}function Pe(we){return r.asArray(we).map(he).join("; ")+";";function he(Be){return Be+": "+we.getPropertyValue(Be)+(we.getPropertyPriority(Be)?" !important":"")}}}}}function q(){Z instanceof HTMLTextAreaElement&&(W.innerHTML=Z.value),Z instanceof HTMLInputElement&&W.setAttribute("value",Z.value)}function $(){W instanceof SVGElement&&(W.setAttribute("xmlns","http://www.w3.org/2000/svg"),W instanceof SVGRectElement&&["width","height"].forEach(function(F){var G=W.getAttribute(F);G&&W.style.setProperty(F,G)}))}}}function R(b){return a.resolveAll().then(function(A){var X=document.createElement("style");return b.appendChild(X),X.appendChild(document.createTextNode(A)),b})}function T(b){return l.inlineAll(b).then(function(){return b})}function _(b,A,X){return Promise.resolve(b).then(function(Q){return Q.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(Q)}).then(r.escapeXhtml).then(function(Q){return'<foreignObject x="0" y="0" width="100%" height="100%">'+Q+"</foreignObject>"}).then(function(Q){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+A+'" height="'+X+'">'+Q+"</svg>"}).then(function(Q){return"data:image/svg+xml;charset=utf-8,"+Q})}function I(){return{escape:$,parseExtension:A,mimeType:X,dataAsUrl:q,isDataUrl:Q,canvasToBlob:re,resolveUrl:Z,getAndEncode:B,uid:W(),delay:F,asArray:G,escapeXhtml:O,makeImage:ue,width:H,height:ae};function b(){var Y="application/font-woff",se="image/jpeg";return{woff:Y,woff2:Y,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:se,jpeg:se,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function A(Y){var se=/\.([^\.\/]*?)$/g.exec(Y);return se?se[1]:""}function X(Y){var se=A(Y).toLowerCase();return b()[se]||""}function Q(Y){return Y.search(/^(data:)/)!==-1}function ee(Y){return new Promise(function(se){for(var K=window.atob(Y.toDataURL().split(",")[1]),oe=K.length,te=new Uint8Array(oe),de=0;de<oe;de++)te[de]=K.charCodeAt(de);se(new Blob([te],{type:"image/png"}))})}function re(Y){return Y.toBlob?new Promise(function(se){Y.toBlob(se)}):ee(Y)}function Z(Y,se){var K=document.implementation.createHTMLDocument(),oe=K.createElement("base");K.head.appendChild(oe);var te=K.createElement("a");return K.body.appendChild(te),oe.href=se,te.href=Y,te.href}function W(){var Y=0;return function(){return"u"+se()+Y++;function se(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function ue(Y){return new Promise(function(se,K){var oe=new Image;oe.onload=function(){se(oe)},oe.onerror=K,oe.src=Y})}function B(Y){var se=3e4;return d.impl.options.cacheBust&&(Y+=(/\?/.test(Y)?"&":"?")+new Date().getTime()),new Promise(function(K){var oe=new XMLHttpRequest;oe.onreadystatechange=pe,oe.ontimeout=Pe,oe.responseType="blob",oe.timeout=se,oe.open("GET",Y,!0),oe.send();var te;if(d.impl.options.imagePlaceholder){var de=d.impl.options.imagePlaceholder.split(/,/);de&&de[1]&&(te=de[1])}function pe(){if(oe.readyState===4){if(oe.status!==200){te?K(te):we("cannot fetch resource: "+Y+", status: "+oe.status);return}var he=new FileReader;he.onloadend=function(){var Be=he.result.split(/,/)[1];K(Be)},he.readAsDataURL(oe.response)}}function Pe(){te?K(te):we("timeout of "+se+"ms occured while fetching resource: "+Y)}function we(he){console.error(he),K("")}})}function q(Y,se){return"data:"+se+";base64,"+Y}function $(Y){return Y.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function F(Y){return function(se){return new Promise(function(K){setTimeout(function(){K(se)},Y)})}}function G(Y){for(var se=[],K=Y.length,oe=0;oe<K;oe++)se.push(Y[oe]);return se}function O(Y){return Y.replace(/#/g,"%23").replace(/\n/g,"%0A")}function H(Y){var se=ce(Y,"border-left-width"),K=ce(Y,"border-right-width");return Y.scrollWidth+se+K}function ae(Y){var se=ce(Y,"border-top-width"),K=ce(Y,"border-bottom-width");return Y.scrollHeight+se+K}function ce(Y,se){var K=window.getComputedStyle(Y).getPropertyValue(se);return parseFloat(K.replace("px",""))}}function N(){var b=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:ee,shouldProcess:A,impl:{readUrls:X,inline:Q}};function A(re){return re.search(b)!==-1}function X(re){for(var Z=[],W;(W=b.exec(re))!==null;)Z.push(W[1]);return Z.filter(function(ue){return!r.isDataUrl(ue)})}function Q(re,Z,W,ue){return Promise.resolve(Z).then(function(q){return W?r.resolveUrl(q,W):q}).then(ue||r.getAndEncode).then(function(q){return r.dataAsUrl(q,r.mimeType(Z))}).then(function(q){return re.replace(B(Z),"$1"+q+"$3")});function B(q){return new RegExp(`(url\\(['"]?)(`+r.escape(q)+`)(['"]?\\))`,"g")}}function ee(re,Z,W){if(ue())return Promise.resolve(re);return Promise.resolve(re).then(X).then(function(B){var q=Promise.resolve(re);return B.forEach(function($){q=q.then(function(F){return Q(F,$,Z,W)})}),q});function ue(){return!A(re)}}}function L(){return{resolveAll:b,impl:{readAll:A}};function b(){return A().then(function(X){return Promise.all(X.map(function(Q){return Q.resolve()}))}).then(function(X){return X.join(`
`)})}function A(){return Promise.resolve(r.asArray(document.styleSheets)).then(Q).then(X).then(function(re){return re.map(ee)});function X(re){return re.filter(function(Z){return Z.type===CSSRule.FONT_FACE_RULE}).filter(function(Z){return i.shouldProcess(Z.style.getPropertyValue("src"))})}function Q(re){var Z=[];return re.forEach(function(W){try{r.asArray(W.cssRules||[]).forEach(Z.push.bind(Z))}catch(ue){console.log("Error while reading CSS rules from "+W.href,ue.toString())}}),Z}function ee(re){return{resolve:function(){var W=(re.parentStyleSheet||{}).href;return i.inlineAll(re.cssText,W)},src:function(){return re.style.getPropertyValue("src")}}}}}function U(){return{inlineAll:A,impl:{newImage:b}};function b(X){return{inline:Q};function Q(ee){return r.isDataUrl(X.src)?Promise.resolve():Promise.resolve(X.src).then(ee||r.getAndEncode).then(function(re){return r.dataAsUrl(re,r.mimeType(X.src))}).then(function(re){return new Promise(function(Z,W){X.onload=Z,X.onerror=W,X.src=re})})}}function A(X){if(!(X instanceof Element))return Promise.resolve(X);return Q(X).then(function(){return X instanceof HTMLImageElement?b(X).inline():Promise.all(r.asArray(X.childNodes).map(function(ee){return A(ee)}))});function Q(ee){var re=ee.style.getPropertyValue("background");return re?i.inlineAll(re).then(function(Z){ee.style.setProperty("background",Z,ee.style.getPropertyPriority("background"))}).then(function(){return ee}):Promise.resolve(ee)}}}})()})(Fu)),Fu.exports}var _E=PE();const TE=ro(_E);function dc(e){if(typeof e=="string"){const n=e.replace(/[^a-zA-Z]/g,"").trim(),r=["","K","M","B","T"].indexOf(n.replace(/\s/g,""));e=Number(e.replace(/[^0-9.]/g,"").trim())*Math.pow(10,r*3)}return e}function IE(e,n){if(typeof e=="string"&&(e=Number(dc(e))),e%1!==0){const r=Math.max(2,e.toString().split(".")[1]?.length||0),i=Math.min(4,r);if(e<5)return e.toFixed(i)||0;e=Number(e.toFixed(2))}if((e>1e5||e<-1e5)&&!Xm(n||"")){const r=Math.min(4,Math.floor(Math.log10(Math.abs(e))/3)),i=["","K","M","B","T"][r];return`${(e/10**(r*3)).toFixed(3).replace(/\.?0+$/,"")} ${i}`}return e>1e3||e<-1e3?Km(e):e}function Km(e){if(e>1e3||e<-1e3){const n=e.toString().split("."),r=n[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),i=n[1]?`.${n[1]}`:"";return`${r}${i}`}return e}function Us(e){return["date","day","time","timestamp","year"].some(n=>e?.toLowerCase().includes(n))}function Xm(e){return["price","open","close"].some(n=>e?.toLowerCase().includes(n))}function Bs(e,n){const r=window.document.getElementById("loading"),i=window.document.getElementById("loading_text");return new Promise(a=>{n?r.classList.remove("show"):(i.innerHTML=e,r.classList.add("show"));const l=setInterval(function(){(n?!r.classList.contains("show"):r.classList.contains("show"))&&(clearInterval(l),a(!0))},.01)})}function DE(e,n){if(e===n)return!0;if(e==null||n==null||e?.length!==n?.length)return!1;for(let r=0;r<e?.length;++r)if(e[r]!==n[r])return!1;return!0}const OE=(e,n,r,i)=>{const a=wE(e.getValue(n),r);return i(a),a},ME=async({fileHandle:e,blob:n})=>{e&&await kE({fileHandle:e,blob:n})},kE=async({fileHandle:e,blob:n})=>{const r=await e.createWritable();await r.write(n),await r.close()},$E=[{description:"PNG Image",accept:{"image/png":[".png"]}},{description:"JPEG Image",accept:{"image/jpeg":[".jpeg"]}}],qm=({filename:e,is_image:n})=>{try{if("showSaveFilePicker"in window){const r={suggestedName:e,types:n?$E:[{description:"CSV File",accept:{"image/csv":[".csv"]}}],excludeAcceptAllOption:!0};return showSaveFilePicker(r)}}catch(r){console.error(r)}return new Promise(r=>{r(null)})},Ym=(e,n,r)=>{try{if(r===null)throw new Error("Cannot access filesystem");ME({fileHandle:r,blob:e})}catch(i){console.error("oops, something went wrong!",i);const a=URL.createObjectURL(e),l=document.createElement("a");l.setAttribute("href",a),l.setAttribute("download",n),l.style.visibility="hidden",document.body.appendChild(l),l.click(),document.body.removeChild(l)}return new Promise(i=>{i(!0)})};async function NE(e,n,r,i){const a=n,l=r.map(d=>a.map(h=>d[h])),c=[a,...l];{const d=c.map(w=>w.join(",")).join(`
`),h=new Blob([d],{type:"text/csv;charset=utf-8;"}),v=`${window.title}.csv`;try{const w=await qm({filename:v});let m="csv";w!==null&&(m=w.name.split(".").pop()),await Bs(`Saving ${m.toUpperCase()}`),Qm(async function(){Ym(h,v,w).then(async function(){await new Promise(S=>setTimeout(S,1500)),await Bs("",!0),w||i(!0)})},2)()}catch(w){console.error(w)}return}}async function bE(e,n){const r=document.getElementById(e),i=`${window.title}.png`;try{const a=await qm({filename:i,is_image:!0});let l="png";a!==null&&(l=a.name.split(".").pop()),await Bs(`Saving ${l.toUpperCase()}`),Qm(async function(){TE.toBlob(r).then(function(c){Ym(c,i,a).then(async function(){await new Promise(d=>setTimeout(d,1500)),await Bs("",!0),a||n(!0)})})},2)()}catch(a){console.error(a)}}const Qm=(e,n)=>{let r;return function(){const i=this,a=arguments;clearTimeout(r),r=setTimeout(()=>e.apply(i,a),n)}},Ws=({title:e,titleId:n,...r})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,...r,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})});function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Oe.apply(null,arguments)}function nh(e,[n,r]){return Math.min(r,Math.max(n,e))}function tt(e,n,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),r===!1||!a.defaultPrevented)return n?.(a)}}function qc(e,n=[]){let r=[];function i(l,c){const d=p.createContext(c),h=r.length;r=[...r,c];function v(m){const{scope:S,children:y,...P}=m,x=S?.[e][h]||d,R=p.useMemo(()=>P,Object.values(P));return p.createElement(x.Provider,{value:R},y)}function w(m,S){const y=S?.[e][h]||d,P=p.useContext(y);if(P)return P;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${l}\``)}return v.displayName=l+"Provider",[v,w]}const a=()=>{const l=r.map(c=>p.createContext(c));return function(d){const h=d?.[e]||l;return p.useMemo(()=>({[`__scope${e}`]:{...d,[e]:h}}),[d,h])}};return a.scopeName=e,[i,AE(a,...n)]}function AE(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const i=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(l){const c=i.reduce((d,{useScope:h,scopeName:v})=>{const m=h(l)[`__scope${v}`];return{...d,...m}},{});return p.useMemo(()=>({[`__scope${n.scopeName}`]:c}),[c])}};return r.scopeName=n.scopeName,r}function LE(e,n){typeof e=="function"?e(n):e!=null&&(e.current=n)}function Zm(...e){return n=>e.forEach(r=>LE(r,n))}function ct(...e){return p.useCallback(Zm(...e),e)}const ri=p.forwardRef((e,n)=>{const{children:r,...i}=e,a=p.Children.toArray(r),l=a.find(jE);if(l){const c=l.props.children,d=a.map(h=>h===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:h);return p.createElement(fc,Oe({},i,{ref:n}),p.isValidElement(c)?p.cloneElement(c,void 0,d):null)}return p.createElement(fc,Oe({},i,{ref:n}),r)});ri.displayName="Slot";const fc=p.forwardRef((e,n)=>{const{children:r,...i}=e;return p.isValidElement(r)?p.cloneElement(r,{...VE(i,r.props),ref:n?Zm(n,r.ref):r.ref}):p.Children.count(r)>1?p.Children.only(null):null});fc.displayName="SlotClone";const FE=({children:e})=>p.createElement(p.Fragment,null,e);function jE(e){return p.isValidElement(e)&&e.type===FE}function VE(e,n){const r={...n};for(const i in n){const a=e[i],l=n[i];/^on[A-Z]/.test(i)?a&&l?r[i]=(...d)=>{l(...d),a(...d)}:a&&(r[i]=a):i==="style"?r[i]={...a,...l}:i==="className"&&(r[i]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function zE(e){const n=e+"CollectionProvider",[r,i]=qc(n),[a,l]=r(n,{collectionRef:{current:null},itemMap:new Map}),c=y=>{const{scope:P,children:x}=y,R=Ye.useRef(null),T=Ye.useRef(new Map).current;return Ye.createElement(a,{scope:P,itemMap:T,collectionRef:R},x)},d=e+"CollectionSlot",h=Ye.forwardRef((y,P)=>{const{scope:x,children:R}=y,T=l(d,x),_=ct(P,T.collectionRef);return Ye.createElement(ri,{ref:_},R)}),v=e+"CollectionItemSlot",w="data-radix-collection-item",m=Ye.forwardRef((y,P)=>{const{scope:x,children:R,...T}=y,_=Ye.useRef(null),I=ct(P,_),N=l(v,x);return Ye.useEffect(()=>(N.itemMap.set(_,{ref:_,...T}),()=>void N.itemMap.delete(_))),Ye.createElement(ri,{[w]:"",ref:I},R)});function S(y){const P=l(e+"CollectionConsumer",y);return Ye.useCallback(()=>{const R=P.collectionRef.current;if(!R)return[];const T=Array.from(R.querySelectorAll(`[${w}]`));return Array.from(P.itemMap.values()).sort((N,L)=>T.indexOf(N.ref.current)-T.indexOf(L.ref.current))},[P.collectionRef,P.itemMap])}return[{Provider:c,Slot:h,ItemSlot:m},S,i]}const HE=p.createContext(void 0);function UE(e){const n=p.useContext(HE);return e||n||"ltr"}const BE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],dt=BE.reduce((e,n)=>{const r=p.forwardRef((i,a)=>{const{asChild:l,...c}=i,d=l?ri:n;return p.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.createElement(d,Oe({},c,{ref:a}))});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});function WE(e,n){e&&mr.flushSync(()=>e.dispatchEvent(n))}function Cn(e){const n=p.useRef(e);return p.useEffect(()=>{n.current=e}),p.useMemo(()=>(...r)=>{var i;return(i=n.current)===null||i===void 0?void 0:i.call(n,...r)},[])}function GE(e,n=globalThis?.document){const r=Cn(e);p.useEffect(()=>{const i=a=>{a.key==="Escape"&&r(a)};return n.addEventListener("keydown",i),()=>n.removeEventListener("keydown",i)},[r,n])}const pc="dismissableLayer.update",KE="dismissableLayer.pointerDownOutside",XE="dismissableLayer.focusOutside";let rh;const qE=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),YE=p.forwardRef((e,n)=>{var r;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:d,onDismiss:h,...v}=e,w=p.useContext(qE),[m,S]=p.useState(null),y=(r=m?.ownerDocument)!==null&&r!==void 0?r:globalThis?.document,[,P]=p.useState({}),x=ct(n,A=>S(A)),R=Array.from(w.layers),[T]=[...w.layersWithOutsidePointerEventsDisabled].slice(-1),_=R.indexOf(T),I=m?R.indexOf(m):-1,N=w.layersWithOutsidePointerEventsDisabled.size>0,L=I>=_,U=QE(A=>{const X=A.target,Q=[...w.branches].some(ee=>ee.contains(X));!L||Q||(l?.(A),d?.(A),A.defaultPrevented||h?.())},y),b=ZE(A=>{const X=A.target;[...w.branches].some(ee=>ee.contains(X))||(c?.(A),d?.(A),A.defaultPrevented||h?.())},y);return GE(A=>{I===w.layers.size-1&&(a?.(A),!A.defaultPrevented&&h&&(A.preventDefault(),h()))},y),p.useEffect(()=>{if(m)return i&&(w.layersWithOutsidePointerEventsDisabled.size===0&&(rh=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),w.layersWithOutsidePointerEventsDisabled.add(m)),w.layers.add(m),oh(),()=>{i&&w.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=rh)}},[m,y,i,w]),p.useEffect(()=>()=>{m&&(w.layers.delete(m),w.layersWithOutsidePointerEventsDisabled.delete(m),oh())},[m,w]),p.useEffect(()=>{const A=()=>P({});return document.addEventListener(pc,A),()=>document.removeEventListener(pc,A)},[]),p.createElement(dt.div,Oe({},v,{ref:x,style:{pointerEvents:N?L?"auto":"none":void 0,...e.style},onFocusCapture:tt(e.onFocusCapture,b.onFocusCapture),onBlurCapture:tt(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:tt(e.onPointerDownCapture,U.onPointerDownCapture)}))});function QE(e,n=globalThis?.document){const r=Cn(e),i=p.useRef(!1),a=p.useRef(()=>{});return p.useEffect(()=>{const l=d=>{if(d.target&&!i.current){let w=function(){Jm(KE,r,v,{discrete:!0})};var h=w;const v={originalEvent:d};d.pointerType==="touch"?(n.removeEventListener("click",a.current),a.current=w,n.addEventListener("click",a.current,{once:!0})):w()}i.current=!1},c=window.setTimeout(()=>{n.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(c),n.removeEventListener("pointerdown",l),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}function ZE(e,n=globalThis?.document){const r=Cn(e),i=p.useRef(!1);return p.useEffect(()=>{const a=l=>{l.target&&!i.current&&Jm(XE,r,{originalEvent:l},{discrete:!1})};return n.addEventListener("focusin",a),()=>n.removeEventListener("focusin",a)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function oh(){const e=new CustomEvent(pc);document.dispatchEvent(e)}function Jm(e,n,r,{discrete:i}){const a=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&a.addEventListener(e,n,{once:!0}),i?WE(a,l):a.dispatchEvent(l)}let ju=0;function JE(){p.useEffect(()=>{var e,n;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:ih()),document.body.insertAdjacentElement("beforeend",(n=r[1])!==null&&n!==void 0?n:ih()),ju++,()=>{ju===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),ju--}},[])}function ih(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Vu="focusScope.autoFocusOnMount",zu="focusScope.autoFocusOnUnmount",sh={bubbles:!1,cancelable:!0},e1=p.forwardRef((e,n)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:l,...c}=e,[d,h]=p.useState(null),v=Cn(a),w=Cn(l),m=p.useRef(null),S=ct(n,x=>h(x)),y=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(i){let _=function(U){if(y.paused||!d)return;const b=U.target;d.contains(b)?m.current=b:Kn(m.current,{select:!0})},I=function(U){if(y.paused||!d)return;const b=U.relatedTarget;b!==null&&(d.contains(b)||Kn(m.current,{select:!0}))},N=function(U){const b=document.activeElement;for(const A of U)A.removedNodes.length>0&&(d!=null&&d.contains(b)||Kn(d))};var x=_,R=I,T=N;document.addEventListener("focusin",_),document.addEventListener("focusout",I);const L=new MutationObserver(N);return d&&L.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",I),L.disconnect()}}},[i,d,y.paused]),p.useEffect(()=>{if(d){ah.add(y);const x=document.activeElement;if(!d.contains(x)){const T=new CustomEvent(Vu,sh);d.addEventListener(Vu,v),d.dispatchEvent(T),T.defaultPrevented||(t1(s1(ev(d)),{select:!0}),document.activeElement===x&&Kn(d))}return()=>{d.removeEventListener(Vu,v),setTimeout(()=>{const T=new CustomEvent(zu,sh);d.addEventListener(zu,w),d.dispatchEvent(T),T.defaultPrevented||Kn(x??document.body,{select:!0}),d.removeEventListener(zu,w),ah.remove(y)},0)}}},[d,v,w,y]);const P=p.useCallback(x=>{if(!r&&!i||y.paused)return;const R=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,T=document.activeElement;if(R&&T){const _=x.currentTarget,[I,N]=n1(_);I&&N?!x.shiftKey&&T===N?(x.preventDefault(),r&&Kn(I,{select:!0})):x.shiftKey&&T===I&&(x.preventDefault(),r&&Kn(N,{select:!0})):T===_&&x.preventDefault()}},[r,i,y.paused]);return p.createElement(dt.div,Oe({tabIndex:-1},c,{ref:S,onKeyDown:P}))});function t1(e,{select:n=!1}={}){const r=document.activeElement;for(const i of e)if(Kn(i,{select:n}),document.activeElement!==r)return}function n1(e){const n=ev(e),r=lh(n,e),i=lh(n.reverse(),e);return[r,i]}function ev(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function lh(e,n){for(const r of e)if(!r1(r,{upTo:n}))return r}function r1(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function o1(e){return e instanceof HTMLInputElement&&"select"in e}function Kn(e,{select:n=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&o1(e)&&n&&e.select()}}const ah=i1();function i1(){let e=[];return{add(n){const r=e[0];n!==r&&r?.pause(),e=uh(e,n),e.unshift(n)},remove(n){var r;e=uh(e,n),(r=e[0])===null||r===void 0||r.resume()}}}function uh(e,n){const r=[...e],i=r.indexOf(n);return i!==-1&&r.splice(i,1),r}function s1(e){return e.filter(n=>n.tagName!=="A")}const Ut=globalThis?.document?p.useLayoutEffect:()=>{},l1=Nc.useId||(()=>{});let a1=0;function Yc(e){const[n,r]=p.useState(l1());return Ut(()=>{r(i=>i??String(a1++))},[e]),n?`radix-${n}`:""}const u1=["top","right","bottom","left"],Yn=Math.min,Dt=Math.max,Gs=Math.round,$s=Math.floor,an=e=>({x:e,y:e}),c1={left:"right",right:"left",bottom:"top",top:"bottom"},d1={start:"end",end:"start"};function gc(e,n,r){return Dt(e,Yn(n,r))}function En(e,n){return typeof e=="function"?e(n):e}function Rn(e){return e.split("-")[0]}function oo(e){return e.split("-")[1]}function Qc(e){return e==="x"?"y":"x"}function Zc(e){return e==="y"?"height":"width"}const f1=new Set(["top","bottom"]);function ln(e){return f1.has(Rn(e))?"y":"x"}function Jc(e){return Qc(ln(e))}function p1(e,n,r){r===void 0&&(r=!1);const i=oo(e),a=Jc(e),l=Zc(a);let c=a==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[l]>n.floating[l]&&(c=Ks(c)),[c,Ks(c)]}function g1(e){const n=Ks(e);return[hc(e),n,hc(n)]}function hc(e){return e.replace(/start|end/g,n=>d1[n])}const ch=["left","right"],dh=["right","left"],h1=["top","bottom"],m1=["bottom","top"];function v1(e,n,r){switch(e){case"top":case"bottom":return r?n?dh:ch:n?ch:dh;case"left":case"right":return n?h1:m1;default:return[]}}function y1(e,n,r,i){const a=oo(e);let l=v1(Rn(e),r==="start",i);return a&&(l=l.map(c=>c+"-"+a),n&&(l=l.concat(l.map(hc)))),l}function Ks(e){return e.replace(/left|right|bottom|top/g,n=>c1[n])}function w1(e){return{top:0,right:0,bottom:0,left:0,...e}}function tv(e){return typeof e!="number"?w1(e):{top:e,right:e,bottom:e,left:e}}function Xs(e){const{x:n,y:r,width:i,height:a}=e;return{width:i,height:a,top:r,left:n,right:n+i,bottom:r+a,x:n,y:r}}function fh(e,n,r){let{reference:i,floating:a}=e;const l=ln(n),c=Jc(n),d=Zc(c),h=Rn(n),v=l==="y",w=i.x+i.width/2-a.width/2,m=i.y+i.height/2-a.height/2,S=i[d]/2-a[d]/2;let y;switch(h){case"top":y={x:w,y:i.y-a.height};break;case"bottom":y={x:w,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:m};break;case"left":y={x:i.x-a.width,y:m};break;default:y={x:i.x,y:i.y}}switch(oo(n)){case"start":y[c]-=S*(r&&v?-1:1);break;case"end":y[c]+=S*(r&&v?-1:1);break}return y}const S1=async(e,n,r)=>{const{placement:i="bottom",strategy:a="absolute",middleware:l=[],platform:c}=r,d=l.filter(Boolean),h=await(c.isRTL==null?void 0:c.isRTL(n));let v=await c.getElementRects({reference:e,floating:n,strategy:a}),{x:w,y:m}=fh(v,i,h),S=i,y={},P=0;for(let x=0;x<d.length;x++){const{name:R,fn:T}=d[x],{x:_,y:I,data:N,reset:L}=await T({x:w,y:m,initialPlacement:i,placement:S,strategy:a,middlewareData:y,rects:v,platform:c,elements:{reference:e,floating:n}});w=_??w,m=I??m,y={...y,[R]:{...y[R],...N}},L&&P<=50&&(P++,typeof L=="object"&&(L.placement&&(S=L.placement),L.rects&&(v=L.rects===!0?await c.getElementRects({reference:e,floating:n,strategy:a}):L.rects),{x:w,y:m}=fh(v,S,h)),x=-1)}return{x:w,y:m,placement:S,strategy:a,middlewareData:y}};async function oi(e,n){var r;n===void 0&&(n={});const{x:i,y:a,platform:l,rects:c,elements:d,strategy:h}=e,{boundary:v="clippingAncestors",rootBoundary:w="viewport",elementContext:m="floating",altBoundary:S=!1,padding:y=0}=En(n,e),P=tv(y),R=d[S?m==="floating"?"reference":"floating":m],T=Xs(await l.getClippingRect({element:(r=await(l.isElement==null?void 0:l.isElement(R)))==null||r?R:R.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:v,rootBoundary:w,strategy:h})),_=m==="floating"?{x:i,y:a,width:c.floating.width,height:c.floating.height}:c.reference,I=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),N=await(l.isElement==null?void 0:l.isElement(I))?await(l.getScale==null?void 0:l.getScale(I))||{x:1,y:1}:{x:1,y:1},L=Xs(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:_,offsetParent:I,strategy:h}):_);return{top:(T.top-L.top+P.top)/N.y,bottom:(L.bottom-T.bottom+P.bottom)/N.y,left:(T.left-L.left+P.left)/N.x,right:(L.right-T.right+P.right)/N.x}}const x1=e=>({name:"arrow",options:e,async fn(n){const{x:r,y:i,placement:a,rects:l,platform:c,elements:d,middlewareData:h}=n,{element:v,padding:w=0}=En(e,n)||{};if(v==null)return{};const m=tv(w),S={x:r,y:i},y=Jc(a),P=Zc(y),x=await c.getDimensions(v),R=y==="y",T=R?"top":"left",_=R?"bottom":"right",I=R?"clientHeight":"clientWidth",N=l.reference[P]+l.reference[y]-S[y]-l.floating[P],L=S[y]-l.reference[y],U=await(c.getOffsetParent==null?void 0:c.getOffsetParent(v));let b=U?U[I]:0;(!b||!await(c.isElement==null?void 0:c.isElement(U)))&&(b=d.floating[I]||l.floating[P]);const A=N/2-L/2,X=b/2-x[P]/2-1,Q=Yn(m[T],X),ee=Yn(m[_],X),re=Q,Z=b-x[P]-ee,W=b/2-x[P]/2+A,ue=gc(re,W,Z),B=!h.arrow&&oo(a)!=null&&W!==ue&&l.reference[P]/2-(W<re?Q:ee)-x[P]/2<0,q=B?W<re?W-re:W-Z:0;return{[y]:S[y]+q,data:{[y]:ue,centerOffset:W-ue-q,...B&&{alignmentOffset:q}},reset:B}}}),C1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var r,i;const{placement:a,middlewareData:l,rects:c,initialPlacement:d,platform:h,elements:v}=n,{mainAxis:w=!0,crossAxis:m=!0,fallbackPlacements:S,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:x=!0,...R}=En(e,n);if((r=l.arrow)!=null&&r.alignmentOffset)return{};const T=Rn(a),_=ln(d),I=Rn(d)===d,N=await(h.isRTL==null?void 0:h.isRTL(v.floating)),L=S||(I||!x?[Ks(d)]:g1(d)),U=P!=="none";!S&&U&&L.push(...y1(d,x,P,N));const b=[d,...L],A=await oi(n,R),X=[];let Q=((i=l.flip)==null?void 0:i.overflows)||[];if(w&&X.push(A[T]),m){const W=p1(a,c,N);X.push(A[W[0]],A[W[1]])}if(Q=[...Q,{placement:a,overflows:X}],!X.every(W=>W<=0)){var ee,re;const W=(((ee=l.flip)==null?void 0:ee.index)||0)+1,ue=b[W];if(ue&&(!(m==="alignment"?_!==ln(ue):!1)||Q.every($=>ln($.placement)===_?$.overflows[0]>0:!0)))return{data:{index:W,overflows:Q},reset:{placement:ue}};let B=(re=Q.filter(q=>q.overflows[0]<=0).sort((q,$)=>q.overflows[1]-$.overflows[1])[0])==null?void 0:re.placement;if(!B)switch(y){case"bestFit":{var Z;const q=(Z=Q.filter($=>{if(U){const F=ln($.placement);return F===_||F==="y"}return!0}).map($=>[$.placement,$.overflows.filter(F=>F>0).reduce((F,G)=>F+G,0)]).sort(($,F)=>$[1]-F[1])[0])==null?void 0:Z[0];q&&(B=q);break}case"initialPlacement":B=d;break}if(a!==B)return{reset:{placement:B}}}return{}}}};function ph(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function gh(e){return u1.some(n=>e[n]>=0)}const E1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:r}=n,{strategy:i="referenceHidden",...a}=En(e,n);switch(i){case"referenceHidden":{const l=await oi(n,{...a,elementContext:"reference"}),c=ph(l,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:gh(c)}}}case"escaped":{const l=await oi(n,{...a,altBoundary:!0}),c=ph(l,r.floating);return{data:{escapedOffsets:c,escaped:gh(c)}}}default:return{}}}}},nv=new Set(["left","top"]);async function R1(e,n){const{placement:r,platform:i,elements:a}=e,l=await(i.isRTL==null?void 0:i.isRTL(a.floating)),c=Rn(r),d=oo(r),h=ln(r)==="y",v=nv.has(c)?-1:1,w=l&&h?-1:1,m=En(n,e);let{mainAxis:S,crossAxis:y,alignmentAxis:P}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return d&&typeof P=="number"&&(y=d==="end"?P*-1:P),h?{x:y*w,y:S*v}:{x:S*v,y:y*w}}const P1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var r,i;const{x:a,y:l,placement:c,middlewareData:d}=n,h=await R1(n,e);return c===((r=d.offset)==null?void 0:r.placement)&&(i=d.arrow)!=null&&i.alignmentOffset?{}:{x:a+h.x,y:l+h.y,data:{...h,placement:c}}}}},_1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:r,y:i,placement:a}=n,{mainAxis:l=!0,crossAxis:c=!1,limiter:d={fn:R=>{let{x:T,y:_}=R;return{x:T,y:_}}},...h}=En(e,n),v={x:r,y:i},w=await oi(n,h),m=ln(Rn(a)),S=Qc(m);let y=v[S],P=v[m];if(l){const R=S==="y"?"top":"left",T=S==="y"?"bottom":"right",_=y+w[R],I=y-w[T];y=gc(_,y,I)}if(c){const R=m==="y"?"top":"left",T=m==="y"?"bottom":"right",_=P+w[R],I=P-w[T];P=gc(_,P,I)}const x=d.fn({...n,[S]:y,[m]:P});return{...x,data:{x:x.x-r,y:x.y-i,enabled:{[S]:l,[m]:c}}}}}},T1=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:r,y:i,placement:a,rects:l,middlewareData:c}=n,{offset:d=0,mainAxis:h=!0,crossAxis:v=!0}=En(e,n),w={x:r,y:i},m=ln(a),S=Qc(m);let y=w[S],P=w[m];const x=En(d,n),R=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(h){const I=S==="y"?"height":"width",N=l.reference[S]-l.floating[I]+R.mainAxis,L=l.reference[S]+l.reference[I]-R.mainAxis;y<N?y=N:y>L&&(y=L)}if(v){var T,_;const I=S==="y"?"width":"height",N=nv.has(Rn(a)),L=l.reference[m]-l.floating[I]+(N&&((T=c.offset)==null?void 0:T[m])||0)+(N?0:R.crossAxis),U=l.reference[m]+l.reference[I]+(N?0:((_=c.offset)==null?void 0:_[m])||0)-(N?R.crossAxis:0);P<L?P=L:P>U&&(P=U)}return{[S]:y,[m]:P}}}},I1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var r,i;const{placement:a,rects:l,platform:c,elements:d}=n,{apply:h=()=>{},...v}=En(e,n),w=await oi(n,v),m=Rn(a),S=oo(a),y=ln(a)==="y",{width:P,height:x}=l.floating;let R,T;m==="top"||m==="bottom"?(R=m,T=S===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(T=m,R=S==="end"?"top":"bottom");const _=x-w.top-w.bottom,I=P-w.left-w.right,N=Yn(x-w[R],_),L=Yn(P-w[T],I),U=!n.middlewareData.shift;let b=N,A=L;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&(A=I),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(b=_),U&&!S){const Q=Dt(w.left,0),ee=Dt(w.right,0),re=Dt(w.top,0),Z=Dt(w.bottom,0);y?A=P-2*(Q!==0||ee!==0?Q+ee:Dt(w.left,w.right)):b=x-2*(re!==0||Z!==0?re+Z:Dt(w.top,w.bottom))}await h({...n,availableWidth:A,availableHeight:b});const X=await c.getDimensions(d.floating);return P!==X.width||x!==X.height?{reset:{rects:!0}}:{}}}};function sl(){return typeof window<"u"}function io(e){return rv(e)?(e.nodeName||"").toLowerCase():"#document"}function Ot(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function cn(e){var n;return(n=(rv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function rv(e){return sl()?e instanceof Node||e instanceof Ot(e).Node:!1}function Zt(e){return sl()?e instanceof Element||e instanceof Ot(e).Element:!1}function un(e){return sl()?e instanceof HTMLElement||e instanceof Ot(e).HTMLElement:!1}function hh(e){return!sl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ot(e).ShadowRoot}const D1=new Set(["inline","contents"]);function ai(e){const{overflow:n,overflowX:r,overflowY:i,display:a}=Jt(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!D1.has(a)}const O1=new Set(["table","td","th"]);function M1(e){return O1.has(io(e))}const k1=[":popover-open",":modal"];function ll(e){return k1.some(n=>{try{return e.matches(n)}catch{return!1}})}const $1=["transform","translate","scale","rotate","perspective"],N1=["transform","translate","scale","rotate","perspective","filter"],b1=["paint","layout","strict","content"];function ed(e){const n=td(),r=Zt(e)?Jt(e):e;return $1.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!n&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!n&&(r.filter?r.filter!=="none":!1)||N1.some(i=>(r.willChange||"").includes(i))||b1.some(i=>(r.contain||"").includes(i))}function A1(e){let n=Qn(e);for(;un(n)&&!to(n);){if(ed(n))return n;if(ll(n))return null;n=Qn(n)}return null}function td(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const L1=new Set(["html","body","#document"]);function to(e){return L1.has(io(e))}function Jt(e){return Ot(e).getComputedStyle(e)}function al(e){return Zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qn(e){if(io(e)==="html")return e;const n=e.assignedSlot||e.parentNode||hh(e)&&e.host||cn(e);return hh(n)?n.host:n}function ov(e){const n=Qn(e);return to(n)?e.ownerDocument?e.ownerDocument.body:e.body:un(n)&&ai(n)?n:ov(n)}function ii(e,n,r){var i;n===void 0&&(n=[]),r===void 0&&(r=!0);const a=ov(e),l=a===((i=e.ownerDocument)==null?void 0:i.body),c=Ot(a);if(l){const d=mc(c);return n.concat(c,c.visualViewport||[],ai(a)?a:[],d&&r?ii(d):[])}return n.concat(a,ii(a,[],r))}function mc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function iv(e){const n=Jt(e);let r=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const a=un(e),l=a?e.offsetWidth:r,c=a?e.offsetHeight:i,d=Gs(r)!==l||Gs(i)!==c;return d&&(r=l,i=c),{width:r,height:i,$:d}}function nd(e){return Zt(e)?e:e.contextElement}function eo(e){const n=nd(e);if(!un(n))return an(1);const r=n.getBoundingClientRect(),{width:i,height:a,$:l}=iv(n);let c=(l?Gs(r.width):r.width)/i,d=(l?Gs(r.height):r.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const F1=an(0);function sv(e){const n=Ot(e);return!td()||!n.visualViewport?F1:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function j1(e,n,r){return n===void 0&&(n=!1),!r||n&&r!==Ot(e)?!1:n}function gr(e,n,r,i){n===void 0&&(n=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),l=nd(e);let c=an(1);n&&(i?Zt(i)&&(c=eo(i)):c=eo(e));const d=j1(l,r,i)?sv(l):an(0);let h=(a.left+d.x)/c.x,v=(a.top+d.y)/c.y,w=a.width/c.x,m=a.height/c.y;if(l){const S=Ot(l),y=i&&Zt(i)?Ot(i):i;let P=S,x=mc(P);for(;x&&i&&y!==P;){const R=eo(x),T=x.getBoundingClientRect(),_=Jt(x),I=T.left+(x.clientLeft+parseFloat(_.paddingLeft))*R.x,N=T.top+(x.clientTop+parseFloat(_.paddingTop))*R.y;h*=R.x,v*=R.y,w*=R.x,m*=R.y,h+=I,v+=N,P=Ot(x),x=mc(P)}}return Xs({width:w,height:m,x:h,y:v})}function ul(e,n){const r=al(e).scrollLeft;return n?n.left+r:gr(cn(e)).left+r}function lv(e,n){const r=e.getBoundingClientRect(),i=r.left+n.scrollLeft-ul(e,r),a=r.top+n.scrollTop;return{x:i,y:a}}function V1(e){let{elements:n,rect:r,offsetParent:i,strategy:a}=e;const l=a==="fixed",c=cn(i),d=n?ll(n.floating):!1;if(i===c||d&&l)return r;let h={scrollLeft:0,scrollTop:0},v=an(1);const w=an(0),m=un(i);if((m||!m&&!l)&&((io(i)!=="body"||ai(c))&&(h=al(i)),un(i))){const y=gr(i);v=eo(i),w.x=y.x+i.clientLeft,w.y=y.y+i.clientTop}const S=c&&!m&&!l?lv(c,h):an(0);return{width:r.width*v.x,height:r.height*v.y,x:r.x*v.x-h.scrollLeft*v.x+w.x+S.x,y:r.y*v.y-h.scrollTop*v.y+w.y+S.y}}function z1(e){return Array.from(e.getClientRects())}function H1(e){const n=cn(e),r=al(e),i=e.ownerDocument.body,a=Dt(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),l=Dt(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let c=-r.scrollLeft+ul(e);const d=-r.scrollTop;return Jt(i).direction==="rtl"&&(c+=Dt(n.clientWidth,i.clientWidth)-a),{width:a,height:l,x:c,y:d}}const mh=25;function U1(e,n){const r=Ot(e),i=cn(e),a=r.visualViewport;let l=i.clientWidth,c=i.clientHeight,d=0,h=0;if(a){l=a.width,c=a.height;const w=td();(!w||w&&n==="fixed")&&(d=a.offsetLeft,h=a.offsetTop)}const v=ul(i);if(v<=0){const w=i.ownerDocument,m=w.body,S=getComputedStyle(m),y=w.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,P=Math.abs(i.clientWidth-m.clientWidth-y);P<=mh&&(l-=P)}else v<=mh&&(l+=v);return{width:l,height:c,x:d,y:h}}const B1=new Set(["absolute","fixed"]);function W1(e,n){const r=gr(e,!0,n==="fixed"),i=r.top+e.clientTop,a=r.left+e.clientLeft,l=un(e)?eo(e):an(1),c=e.clientWidth*l.x,d=e.clientHeight*l.y,h=a*l.x,v=i*l.y;return{width:c,height:d,x:h,y:v}}function vh(e,n,r){let i;if(n==="viewport")i=U1(e,r);else if(n==="document")i=H1(cn(e));else if(Zt(n))i=W1(n,r);else{const a=sv(e);i={x:n.x-a.x,y:n.y-a.y,width:n.width,height:n.height}}return Xs(i)}function av(e,n){const r=Qn(e);return r===n||!Zt(r)||to(r)?!1:Jt(r).position==="fixed"||av(r,n)}function G1(e,n){const r=n.get(e);if(r)return r;let i=ii(e,[],!1).filter(d=>Zt(d)&&io(d)!=="body"),a=null;const l=Jt(e).position==="fixed";let c=l?Qn(e):e;for(;Zt(c)&&!to(c);){const d=Jt(c),h=ed(c);!h&&d.position==="fixed"&&(a=null),(l?!h&&!a:!h&&d.position==="static"&&!!a&&B1.has(a.position)||ai(c)&&!h&&av(e,c))?i=i.filter(w=>w!==c):a=d,c=Qn(c)}return n.set(e,i),i}function K1(e){let{element:n,boundary:r,rootBoundary:i,strategy:a}=e;const c=[...r==="clippingAncestors"?ll(n)?[]:G1(n,this._c):[].concat(r),i],d=c[0],h=c.reduce((v,w)=>{const m=vh(n,w,a);return v.top=Dt(m.top,v.top),v.right=Yn(m.right,v.right),v.bottom=Yn(m.bottom,v.bottom),v.left=Dt(m.left,v.left),v},vh(n,d,a));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function X1(e){const{width:n,height:r}=iv(e);return{width:n,height:r}}function q1(e,n,r){const i=un(n),a=cn(n),l=r==="fixed",c=gr(e,!0,l,n);let d={scrollLeft:0,scrollTop:0};const h=an(0);function v(){h.x=ul(a)}if(i||!i&&!l)if((io(n)!=="body"||ai(a))&&(d=al(n)),i){const y=gr(n,!0,l,n);h.x=y.x+n.clientLeft,h.y=y.y+n.clientTop}else a&&v();l&&!i&&a&&v();const w=a&&!i&&!l?lv(a,d):an(0),m=c.left+d.scrollLeft-h.x-w.x,S=c.top+d.scrollTop-h.y-w.y;return{x:m,y:S,width:c.width,height:c.height}}function Hu(e){return Jt(e).position==="static"}function yh(e,n){if(!un(e)||Jt(e).position==="fixed")return null;if(n)return n(e);let r=e.offsetParent;return cn(e)===r&&(r=r.ownerDocument.body),r}function uv(e,n){const r=Ot(e);if(ll(e))return r;if(!un(e)){let a=Qn(e);for(;a&&!to(a);){if(Zt(a)&&!Hu(a))return a;a=Qn(a)}return r}let i=yh(e,n);for(;i&&M1(i)&&Hu(i);)i=yh(i,n);return i&&to(i)&&Hu(i)&&!ed(i)?r:i||A1(e)||r}const Y1=async function(e){const n=this.getOffsetParent||uv,r=this.getDimensions,i=await r(e.floating);return{reference:q1(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Q1(e){return Jt(e).direction==="rtl"}const Z1={convertOffsetParentRelativeRectToViewportRelativeRect:V1,getDocumentElement:cn,getClippingRect:K1,getOffsetParent:uv,getElementRects:Y1,getClientRects:z1,getDimensions:X1,getScale:eo,isElement:Zt,isRTL:Q1};function cv(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function J1(e,n){let r=null,i;const a=cn(e);function l(){var d;clearTimeout(i),(d=r)==null||d.disconnect(),r=null}function c(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),l();const v=e.getBoundingClientRect(),{left:w,top:m,width:S,height:y}=v;if(d||n(),!S||!y)return;const P=$s(m),x=$s(a.clientWidth-(w+S)),R=$s(a.clientHeight-(m+y)),T=$s(w),I={rootMargin:-P+"px "+-x+"px "+-R+"px "+-T+"px",threshold:Dt(0,Yn(1,h))||1};let N=!0;function L(U){const b=U[0].intersectionRatio;if(b!==h){if(!N)return c();b?c(!1,b):i=setTimeout(()=>{c(!1,1e-7)},1e3)}b===1&&!cv(v,e.getBoundingClientRect())&&c(),N=!1}try{r=new IntersectionObserver(L,{...I,root:a.ownerDocument})}catch{r=new IntersectionObserver(L,I)}r.observe(e)}return c(!0),l}function dv(e,n,r,i){i===void 0&&(i={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,v=nd(e),w=a||l?[...v?ii(v):[],...ii(n)]:[];w.forEach(T=>{a&&T.addEventListener("scroll",r,{passive:!0}),l&&T.addEventListener("resize",r)});const m=v&&d?J1(v,r):null;let S=-1,y=null;c&&(y=new ResizeObserver(T=>{let[_]=T;_&&_.target===v&&y&&(y.unobserve(n),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var I;(I=y)==null||I.observe(n)})),r()}),v&&!h&&y.observe(v),y.observe(n));let P,x=h?gr(e):null;h&&R();function R(){const T=gr(e);x&&!cv(x,T)&&r(),x=T,P=requestAnimationFrame(R)}return r(),()=>{var T;w.forEach(_=>{a&&_.removeEventListener("scroll",r),l&&_.removeEventListener("resize",r)}),m?.(),(T=y)==null||T.disconnect(),y=null,h&&cancelAnimationFrame(P)}}const eR=P1,tR=_1,nR=C1,rR=I1,oR=E1,wh=x1,iR=T1,sR=(e,n,r)=>{const i=new Map,a={platform:Z1,...r},l={...a.platform,_c:i};return S1(e,n,{...a,platform:l})};var lR=typeof document<"u",aR=function(){},Vs=lR?p.useLayoutEffect:aR;function qs(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let r,i,a;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==n.length)return!1;for(i=r;i--!==0;)if(!qs(e[i],n[i]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){const l=a[i];if(!(l==="_owner"&&e.$$typeof)&&!qs(e[l],n[l]))return!1}return!0}return e!==e&&n!==n}function fv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sh(e,n){const r=fv(e);return Math.round(n*r)/r}function Uu(e){const n=p.useRef(e);return Vs(()=>{n.current=e}),n}function pv(e){e===void 0&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:a,elements:{reference:l,floating:c}={},transform:d=!0,whileElementsMounted:h,open:v}=e,[w,m]=p.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[S,y]=p.useState(i);qs(S,i)||y(i);const[P,x]=p.useState(null),[R,T]=p.useState(null),_=p.useCallback($=>{$!==U.current&&(U.current=$,x($))},[]),I=p.useCallback($=>{$!==b.current&&(b.current=$,T($))},[]),N=l||P,L=c||R,U=p.useRef(null),b=p.useRef(null),A=p.useRef(w),X=h!=null,Q=Uu(h),ee=Uu(a),re=Uu(v),Z=p.useCallback(()=>{if(!U.current||!b.current)return;const $={placement:n,strategy:r,middleware:S};ee.current&&($.platform=ee.current),sR(U.current,b.current,$).then(F=>{const G={...F,isPositioned:re.current!==!1};W.current&&!qs(A.current,G)&&(A.current=G,mr.flushSync(()=>{m(G)}))})},[S,n,r,ee,re]);Vs(()=>{v===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,m($=>({...$,isPositioned:!1})))},[v]);const W=p.useRef(!1);Vs(()=>(W.current=!0,()=>{W.current=!1}),[]),Vs(()=>{if(N&&(U.current=N),L&&(b.current=L),N&&L){if(Q.current)return Q.current(N,L,Z);Z()}},[N,L,Z,Q,X]);const ue=p.useMemo(()=>({reference:U,floating:b,setReference:_,setFloating:I}),[_,I]),B=p.useMemo(()=>({reference:N,floating:L}),[N,L]),q=p.useMemo(()=>{const $={position:r,left:0,top:0};if(!B.floating)return $;const F=Sh(B.floating,w.x),G=Sh(B.floating,w.y);return d?{...$,transform:"translate("+F+"px, "+G+"px)",...fv(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:F,top:G}},[r,d,B.floating,w.x,w.y]);return p.useMemo(()=>({...w,update:Z,refs:ue,elements:B,floatingStyles:q}),[w,Z,ue,B,q])}const uR=e=>{function n(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:i,padding:a}=typeof e=="function"?e(r):e;return i&&n(i)?i.current!=null?wh({element:i.current,padding:a}).fn(r):{}:i?wh({element:i,padding:a}).fn(r):{}}}},gv=(e,n)=>({...eR(e),options:[e,n]}),hv=(e,n)=>({...tR(e),options:[e,n]}),mv=(e,n)=>({...iR(e),options:[e,n]}),vv=(e,n)=>({...nR(e),options:[e,n]}),yv=(e,n)=>({...rR(e),options:[e,n]}),wv=(e,n)=>({...oR(e),options:[e,n]}),Sv=(e,n)=>({...uR(e),options:[e,n]});function cR(e){const[n,r]=p.useState(void 0);return Ut(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let c,d;if("borderBoxSize"in l){const h=l.borderBoxSize,v=Array.isArray(h)?h[0]:h;c=v.inlineSize,d=v.blockSize}else c=e.offsetWidth,d=e.offsetHeight;r({width:c,height:d})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),n}const xv="Popper",[Cv,Ev]=qc(xv),[dR,Rv]=Cv(xv),fR=e=>{const{__scopePopper:n,children:r}=e,[i,a]=p.useState(null);return p.createElement(dR,{scope:n,anchor:i,onAnchorChange:a},r)},pR="PopperAnchor",gR=p.forwardRef((e,n)=>{const{__scopePopper:r,virtualRef:i,...a}=e,l=Rv(pR,r),c=p.useRef(null),d=ct(n,c);return p.useEffect(()=>{l.onAnchorChange(i?.current||c.current)}),i?null:p.createElement(dt.div,Oe({},a,{ref:d}))}),Pv="PopperContent",[hR,BO]=Cv(Pv),mR=p.forwardRef((e,n)=>{var r,i,a,l,c,d,h,v;const{__scopePopper:w,side:m="bottom",sideOffset:S=0,align:y="center",alignOffset:P=0,arrowPadding:x=0,collisionBoundary:R=[],collisionPadding:T=0,sticky:_="partial",hideWhenDetached:I=!1,avoidCollisions:N=!0,onPlaced:L,...U}=e,b=Rv(Pv,w),[A,X]=p.useState(null),Q=ct(n,he=>X(he)),[ee,re]=p.useState(null),Z=cR(ee),W=(r=Z?.width)!==null&&r!==void 0?r:0,ue=(i=Z?.height)!==null&&i!==void 0?i:0,B=m+(y!=="center"?"-"+y:""),q=typeof T=="number"?T:{top:0,right:0,bottom:0,left:0,...T},$=Array.isArray(R)?R:[R],F=$.length>0,G={padding:q,boundary:$.filter(vR),altBoundary:F},{refs:O,floatingStyles:H,placement:ae,isPositioned:ce,middlewareData:Y}=pv({strategy:"fixed",placement:B,whileElementsMounted:dv,elements:{reference:b.anchor},middleware:[gv({mainAxis:S+ue,alignmentAxis:P}),N&&hv({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?mv():void 0,...G}),N&&vv({...G}),yv({...G,apply:({elements:he,rects:Be,availableWidth:kt,availableHeight:$t})=>{const{width:ao,height:Fe}=Be.reference,Ne=he.floating.style;Ne.setProperty("--radix-popper-available-width",`${kt}px`),Ne.setProperty("--radix-popper-available-height",`${$t}px`),Ne.setProperty("--radix-popper-anchor-width",`${ao}px`),Ne.setProperty("--radix-popper-anchor-height",`${Fe}px`)}}),ee&&Sv({element:ee,padding:x}),yR({arrowWidth:W,arrowHeight:ue}),I&&wv({strategy:"referenceHidden"})]}),[se,K]=_v(ae),oe=Cn(L);Ut(()=>{ce&&oe?.()},[ce,oe]);const te=(a=Y.arrow)===null||a===void 0?void 0:a.x,de=(l=Y.arrow)===null||l===void 0?void 0:l.y,pe=((c=Y.arrow)===null||c===void 0?void 0:c.centerOffset)!==0,[Pe,we]=p.useState();return Ut(()=>{A&&we(window.getComputedStyle(A).zIndex)},[A]),p.createElement("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:ce?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Pe,"--radix-popper-transform-origin":[(d=Y.transformOrigin)===null||d===void 0?void 0:d.x,(h=Y.transformOrigin)===null||h===void 0?void 0:h.y].join(" ")},dir:e.dir},p.createElement(hR,{scope:w,placedSide:se,onArrowChange:re,arrowX:te,arrowY:de,shouldHideArrow:pe},p.createElement(dt.div,Oe({"data-side":se,"data-align":K},U,{ref:Q,style:{...U.style,animation:ce?void 0:"none",opacity:(v=Y.hide)!==null&&v!==void 0&&v.referenceHidden?0:void 0}}))))});function vR(e){return e!==null}const yR=e=>({name:"transformOrigin",options:e,fn(n){var r,i,a,l,c;const{placement:d,rects:h,middlewareData:v}=n,m=((r=v.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,S=m?0:e.arrowWidth,y=m?0:e.arrowHeight,[P,x]=_v(d),R={start:"0%",center:"50%",end:"100%"}[x],T=((i=(a=v.arrow)===null||a===void 0?void 0:a.x)!==null&&i!==void 0?i:0)+S/2,_=((l=(c=v.arrow)===null||c===void 0?void 0:c.y)!==null&&l!==void 0?l:0)+y/2;let I="",N="";return P==="bottom"?(I=m?R:`${T}px`,N=`${-y}px`):P==="top"?(I=m?R:`${T}px`,N=`${h.floating.height+y}px`):P==="right"?(I=`${-y}px`,N=m?R:`${_}px`):P==="left"&&(I=`${h.floating.width+y}px`,N=m?R:`${_}px`),{data:{x:I,y:N}}}});function _v(e){const[n,r="center"]=e.split("-");return[n,r]}const wR=fR,SR=gR,xR=mR,CR=p.forwardRef((e,n)=>{var r;const{container:i=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...a}=e;return i?Yh.createPortal(p.createElement(dt.div,Oe({},a,{ref:n})),i):null});function xh({prop:e,defaultProp:n,onChange:r=()=>{}}){const[i,a]=ER({defaultProp:n,onChange:r}),l=e!==void 0,c=l?e:i,d=Cn(r),h=p.useCallback(v=>{if(l){const m=typeof v=="function"?v(e):v;m!==e&&d(m)}else a(v)},[l,e,a,d]);return[c,h]}function ER({defaultProp:e,onChange:n}){const r=p.useState(e),[i]=r,a=p.useRef(i),l=Cn(n);return p.useEffect(()=>{a.current!==i&&(l(i),a.current=i)},[i,a,l]),r}function RR(e){const n=p.useRef({value:e,previous:e});return p.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}function PR(e,n){typeof e=="function"?e(n):e!=null&&(e.current=n)}function _R(...e){return n=>e.forEach(r=>PR(r,n))}const Tv=p.forwardRef((e,n)=>{const{children:r,...i}=e,a=p.Children.toArray(r),l=a.find(IR);if(l){const c=l.props.children,d=a.map(h=>h===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:h);return p.createElement(vc,Oe({},i,{ref:n}),p.isValidElement(c)?p.cloneElement(c,void 0,d):null)}return p.createElement(vc,Oe({},i,{ref:n}),r)});Tv.displayName="Slot";const vc=p.forwardRef((e,n)=>{const{children:r,...i}=e;return p.isValidElement(r)?p.cloneElement(r,{...DR(i,r.props),ref:n?_R(n,r.ref):r.ref}):p.Children.count(r)>1?p.Children.only(null):null});vc.displayName="SlotClone";const TR=({children:e})=>p.createElement(p.Fragment,null,e);function IR(e){return p.isValidElement(e)&&e.type===TR}function DR(e,n){const r={...n};for(const i in n){const a=e[i],l=n[i];/^on[A-Z]/.test(i)?a&&l?r[i]=(...d)=>{l(...d),a(...d)}:a&&(r[i]=a):i==="style"?r[i]={...a,...l}:i==="className"&&(r[i]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}const OR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],MR=OR.reduce((e,n)=>{const r=p.forwardRef((i,a)=>{const{asChild:l,...c}=i,d=l?Tv:n;return p.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.createElement(d,Oe({},c,{ref:a}))});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{}),kR=p.forwardRef((e,n)=>p.createElement(MR.span,Oe({},e,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));var Iv=om(),Bu=function(){},cl=p.forwardRef(function(e,n){var r=p.useRef(null),i=p.useState({onScrollCapture:Bu,onWheelCapture:Bu,onTouchMoveCapture:Bu}),a=i[0],l=i[1],c=e.forwardProps,d=e.children,h=e.className,v=e.removeScrollBar,w=e.enabled,m=e.shards,S=e.sideCar,y=e.noIsolation,P=e.inert,x=e.allowPinchZoom,R=e.as,T=R===void 0?"div":R,_=Lc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),I=S,N=rm([r,n]),L=ut(ut({},_),a);return p.createElement(p.Fragment,null,w&&p.createElement(I,{sideCar:Iv,removeScrollBar:v,shards:m,noIsolation:y,inert:P,setCallbacks:l,allowPinchZoom:!!x,lockRef:r}),c?p.cloneElement(p.Children.only(d),ut(ut({},L),{ref:N})):p.createElement(T,ut({},L,{className:h,ref:N}),d))});cl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cl.classNames={fullWidth:Jo,zeroRight:Zo};var yc=!1;if(typeof window<"u")try{var Ns=Object.defineProperty({},"passive",{get:function(){return yc=!0,!0}});window.addEventListener("test",Ns,Ns),window.removeEventListener("test",Ns,Ns)}catch{yc=!1}var Xr=yc?{passive:!1}:!1,$R=function(e){return e.tagName==="TEXTAREA"},Dv=function(e,n){var r=window.getComputedStyle(e);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!$R(e)&&r[n]==="visible")},NR=function(e){return Dv(e,"overflowY")},bR=function(e){return Dv(e,"overflowX")},Ch=function(e,n){var r=n;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Ov(e,r);if(i){var a=Mv(e,r),l=a[1],c=a[2];if(l>c)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},AR=function(e){var n=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[n,r,i]},LR=function(e){var n=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[n,r,i]},Ov=function(e,n){return e==="v"?NR(n):bR(n)},Mv=function(e,n){return e==="v"?AR(n):LR(n)},FR=function(e,n){return e==="h"&&n==="rtl"?-1:1},jR=function(e,n,r,i,a){var l=FR(e,window.getComputedStyle(n).direction),c=l*i,d=r.target,h=n.contains(d),v=!1,w=c>0,m=0,S=0;do{var y=Mv(e,d),P=y[0],x=y[1],R=y[2],T=x-R-l*P;(P||T)&&Ov(e,d)&&(m+=T,S+=P),d=d.parentNode}while(!h&&d!==document.body||h&&(n.contains(d)||n===d));return(w&&m===0||!w&&S===0)&&(v=!0),v},bs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Eh=function(e){return[e.deltaX,e.deltaY]},Rh=function(e){return e&&"current"in e?e.current:e},VR=function(e,n){return e[0]===n[0]&&e[1]===n[1]},zR=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},HR=0,qr=[];function UR(e){var n=p.useRef([]),r=p.useRef([0,0]),i=p.useRef(),a=p.useState(HR++)[0],l=p.useState(function(){return Fc()})[0],c=p.useRef(e);p.useEffect(function(){c.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var x=nm([e.lockRef.current],(e.shards||[]).map(Rh),!0).filter(Boolean);return x.forEach(function(R){return R.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),x.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var d=p.useCallback(function(x,R){if("touches"in x&&x.touches.length===2)return!c.current.allowPinchZoom;var T=bs(x),_=r.current,I="deltaX"in x?x.deltaX:_[0]-T[0],N="deltaY"in x?x.deltaY:_[1]-T[1],L,U=x.target,b=Math.abs(I)>Math.abs(N)?"h":"v";if("touches"in x&&b==="h"&&U.type==="range")return!1;var A=Ch(b,U);if(!A)return!0;if(A?L=b:(L=b==="v"?"h":"v",A=Ch(b,U)),!A)return!1;if(!i.current&&"changedTouches"in x&&(I||N)&&(i.current=L),!L)return!0;var X=i.current||L;return jR(X,R,x,X==="h"?I:N)},[]),h=p.useCallback(function(x){var R=x;if(!(!qr.length||qr[qr.length-1]!==l)){var T="deltaY"in R?Eh(R):bs(R),_=n.current.filter(function(L){return L.name===R.type&&L.target===R.target&&VR(L.delta,T)})[0];if(_&&_.should){R.cancelable&&R.preventDefault();return}if(!_){var I=(c.current.shards||[]).map(Rh).filter(Boolean).filter(function(L){return L.contains(R.target)}),N=I.length>0?d(R,I[0]):!c.current.noIsolation;N&&R.cancelable&&R.preventDefault()}}},[]),v=p.useCallback(function(x,R,T,_){var I={name:x,delta:R,target:T,should:_};n.current.push(I),setTimeout(function(){n.current=n.current.filter(function(N){return N!==I})},1)},[]),w=p.useCallback(function(x){r.current=bs(x),i.current=void 0},[]),m=p.useCallback(function(x){v(x.type,Eh(x),x.target,d(x,e.lockRef.current))},[]),S=p.useCallback(function(x){v(x.type,bs(x),x.target,d(x,e.lockRef.current))},[]);p.useEffect(function(){return qr.push(l),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:S}),document.addEventListener("wheel",h,Xr),document.addEventListener("touchmove",h,Xr),document.addEventListener("touchstart",w,Xr),function(){qr=qr.filter(function(x){return x!==l}),document.removeEventListener("wheel",h,Xr),document.removeEventListener("touchmove",h,Xr),document.removeEventListener("touchstart",w,Xr)}},[]);var y=e.removeScrollBar,P=e.inert;return p.createElement(p.Fragment,null,P?p.createElement(l,{styles:zR(a)}):null,y?p.createElement(am,{gapMode:"margin"}):null)}const BR=sm(Iv,UR);var kv=p.forwardRef(function(e,n){return p.createElement(cl,ut({},e,{ref:n,sideCar:BR}))});kv.classNames=cl.classNames;const WR=[" ","Enter","ArrowUp","ArrowDown"],GR=[" ","Enter"],dl="Select",[fl,pl,KR]=zE(dl),[so]=qc(dl,[KR,Ev]),rd=Ev(),[XR,vr]=so(dl),[qR,YR]=so(dl),QR=e=>{const{__scopeSelect:n,children:r,open:i,defaultOpen:a,onOpenChange:l,value:c,defaultValue:d,onValueChange:h,dir:v,name:w,autoComplete:m,disabled:S,required:y}=e,P=rd(n),[x,R]=p.useState(null),[T,_]=p.useState(null),[I,N]=p.useState(!1),L=UE(v),[U=!1,b]=xh({prop:i,defaultProp:a,onChange:l}),[A,X]=xh({prop:c,defaultProp:d,onChange:h}),Q=p.useRef(null),ee=x?!!x.closest("form"):!0,[re,Z]=p.useState(new Set),W=Array.from(re).map(ue=>ue.props.value).join(";");return p.createElement(wR,P,p.createElement(XR,{required:y,scope:n,trigger:x,onTriggerChange:R,valueNode:T,onValueNodeChange:_,valueNodeHasChildren:I,onValueNodeHasChildrenChange:N,contentId:Yc(),value:A,onValueChange:X,open:U,onOpenChange:b,dir:L,triggerPointerDownPosRef:Q,disabled:S},p.createElement(fl.Provider,{scope:n},p.createElement(qR,{scope:e.__scopeSelect,onNativeOptionAdd:p.useCallback(ue=>{Z(B=>new Set(B).add(ue))},[]),onNativeOptionRemove:p.useCallback(ue=>{Z(B=>{const q=new Set(B);return q.delete(ue),q})},[])},r)),ee?p.createElement(Av,{key:W,"aria-hidden":!0,required:y,tabIndex:-1,name:w,autoComplete:m,value:A,onChange:ue=>X(ue.target.value),disabled:S},A===void 0?p.createElement("option",{value:""}):null,Array.from(re)):null))},ZR="SelectTrigger",JR=p.forwardRef((e,n)=>{const{__scopeSelect:r,disabled:i=!1,...a}=e,l=rd(r),c=vr(ZR,r),d=c.disabled||i,h=ct(n,c.onTriggerChange),v=pl(r),[w,m,S]=Lv(P=>{const x=v().filter(_=>!_.disabled),R=x.find(_=>_.value===c.value),T=Fv(x,P,R);T!==void 0&&c.onValueChange(T.value)}),y=()=>{d||(c.onOpenChange(!0),S())};return p.createElement(SR,Oe({asChild:!0},l),p.createElement(dt.button,Oe({type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":c.value===void 0?"":void 0},a,{ref:h,onClick:tt(a.onClick,P=>{P.currentTarget.focus()}),onPointerDown:tt(a.onPointerDown,P=>{const x=P.target;x.hasPointerCapture(P.pointerId)&&x.releasePointerCapture(P.pointerId),P.button===0&&P.ctrlKey===!1&&(y(),c.triggerPointerDownPosRef.current={x:Math.round(P.pageX),y:Math.round(P.pageY)},P.preventDefault())}),onKeyDown:tt(a.onKeyDown,P=>{const x=w.current!=="";!(P.ctrlKey||P.altKey||P.metaKey)&&P.key.length===1&&m(P.key),!(x&&P.key===" ")&&WR.includes(P.key)&&(y(),P.preventDefault())})})))}),eP="SelectValue",tP=p.forwardRef((e,n)=>{const{__scopeSelect:r,className:i,style:a,children:l,placeholder:c,...d}=e,h=vr(eP,r),{onValueNodeHasChildrenChange:v}=h,w=l!==void 0,m=ct(n,h.onValueNodeChange);return Ut(()=>{v(w)},[v,w]),p.createElement(dt.span,Oe({},d,{ref:m,style:{pointerEvents:"none"}}),h.value===void 0&&c!==void 0?c:l)}),nP=p.forwardRef((e,n)=>{const{__scopeSelect:r,children:i,...a}=e;return p.createElement(dt.span,Oe({"aria-hidden":!0},a,{ref:n}),i||"▼")}),rP=e=>p.createElement(CR,Oe({asChild:!0},e)),no="SelectContent",oP=p.forwardRef((e,n)=>{const r=vr(no,e.__scopeSelect),[i,a]=p.useState();if(Ut(()=>{a(new DocumentFragment)},[]),!r.open){const l=i;return l?mr.createPortal(p.createElement($v,{scope:e.__scopeSelect},p.createElement(fl.Slot,{scope:e.__scopeSelect},p.createElement("div",null,e.children))),l):null}return p.createElement(iP,Oe({},e,{ref:n}))}),Sn=10,[$v,yr]=so(no),iP=p.forwardRef((e,n)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:l,onPointerDownOutside:c,side:d,sideOffset:h,align:v,alignOffset:w,arrowPadding:m,collisionBoundary:S,collisionPadding:y,sticky:P,hideWhenDetached:x,avoidCollisions:R,...T}=e,_=vr(no,r),[I,N]=p.useState(null),[L,U]=p.useState(null),b=ct(n,K=>N(K)),[A,X]=p.useState(null),[Q,ee]=p.useState(null),re=pl(r),[Z,W]=p.useState(!1),ue=p.useRef(!1);p.useEffect(()=>{if(I)return Vc(I)},[I]),JE();const B=p.useCallback(K=>{const[oe,...te]=re().map(Pe=>Pe.ref.current),[de]=te.slice(-1),pe=document.activeElement;for(const Pe of K)if(Pe===pe||(Pe?.scrollIntoView({block:"nearest"}),Pe===oe&&L&&(L.scrollTop=0),Pe===de&&L&&(L.scrollTop=L.scrollHeight),Pe?.focus(),document.activeElement!==pe))return},[re,L]),q=p.useCallback(()=>B([A,I]),[B,A,I]);p.useEffect(()=>{Z&&q()},[Z,q]);const{onOpenChange:$,triggerPointerDownPosRef:F}=_;p.useEffect(()=>{if(I){let K={x:0,y:0};const oe=de=>{var pe,Pe,we,he;K={x:Math.abs(Math.round(de.pageX)-((pe=(Pe=F.current)===null||Pe===void 0?void 0:Pe.x)!==null&&pe!==void 0?pe:0)),y:Math.abs(Math.round(de.pageY)-((we=(he=F.current)===null||he===void 0?void 0:he.y)!==null&&we!==void 0?we:0))}},te=de=>{K.x<=10&&K.y<=10?de.preventDefault():I.contains(de.target)||$(!1),document.removeEventListener("pointermove",oe),F.current=null};return F.current!==null&&(document.addEventListener("pointermove",oe),document.addEventListener("pointerup",te,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",oe),document.removeEventListener("pointerup",te,{capture:!0})}}},[I,$,F]),p.useEffect(()=>{const K=()=>$(!1);return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[$]);const[G,O]=Lv(K=>{const oe=re().filter(pe=>!pe.disabled),te=oe.find(pe=>pe.ref.current===document.activeElement),de=Fv(oe,K,te);de&&setTimeout(()=>de.ref.current.focus())}),H=p.useCallback((K,oe,te)=>{const de=!ue.current&&!te;(_.value!==void 0&&_.value===oe||de)&&(X(K),de&&(ue.current=!0))},[_.value]),ae=p.useCallback(()=>I?.focus(),[I]),ce=p.useCallback((K,oe,te)=>{const de=!ue.current&&!te;(_.value!==void 0&&_.value===oe||de)&&ee(K)},[_.value]),Y=i==="popper"?Ph:sP,se=Y===Ph?{side:d,sideOffset:h,align:v,alignOffset:w,arrowPadding:m,collisionBoundary:S,collisionPadding:y,sticky:P,hideWhenDetached:x,avoidCollisions:R}:{};return p.createElement($v,{scope:r,content:I,viewport:L,onViewportChange:U,itemRefCallback:H,selectedItem:A,onItemLeave:ae,itemTextRefCallback:ce,focusSelectedItem:q,selectedItemText:Q,position:i,isPositioned:Z,searchRef:G},p.createElement(kv,{as:ri,allowPinchZoom:!0},p.createElement(e1,{asChild:!0,trapped:_.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:tt(a,K=>{var oe;(oe=_.trigger)===null||oe===void 0||oe.focus({preventScroll:!0}),K.preventDefault()})},p.createElement(YE,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>_.onOpenChange(!1)},p.createElement(Y,Oe({role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:K=>K.preventDefault()},T,se,{onPlaced:()=>W(!0),ref:b,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:tt(T.onKeyDown,K=>{const oe=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!oe&&K.key.length===1&&O(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let de=re().filter(pe=>!pe.disabled).map(pe=>pe.ref.current);if(["ArrowUp","End"].includes(K.key)&&(de=de.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const pe=K.target,Pe=de.indexOf(pe);de=de.slice(Pe+1)}setTimeout(()=>B(de)),K.preventDefault()}})}))))))}),sP=p.forwardRef((e,n)=>{const{__scopeSelect:r,onPlaced:i,...a}=e,l=vr(no,r),c=yr(no,r),[d,h]=p.useState(null),[v,w]=p.useState(null),m=ct(n,b=>w(b)),S=pl(r),y=p.useRef(!1),P=p.useRef(!0),{viewport:x,selectedItem:R,selectedItemText:T,focusSelectedItem:_}=c,I=p.useCallback(()=>{if(l.trigger&&l.valueNode&&d&&v&&x&&R&&T){const b=l.trigger.getBoundingClientRect(),A=v.getBoundingClientRect(),X=l.valueNode.getBoundingClientRect(),Q=T.getBoundingClientRect();if(l.dir!=="rtl"){const pe=Q.left-A.left,Pe=X.left-pe,we=b.left-Pe,he=b.width+we,Be=Math.max(he,A.width),kt=window.innerWidth-Sn,$t=nh(Pe,[Sn,kt-Be]);d.style.minWidth=he+"px",d.style.left=$t+"px"}else{const pe=A.right-Q.right,Pe=window.innerWidth-X.right-pe,we=window.innerWidth-b.right-Pe,he=b.width+we,Be=Math.max(he,A.width),kt=window.innerWidth-Sn,$t=nh(Pe,[Sn,kt-Be]);d.style.minWidth=he+"px",d.style.right=$t+"px"}const ee=S(),re=window.innerHeight-Sn*2,Z=x.scrollHeight,W=window.getComputedStyle(v),ue=parseInt(W.borderTopWidth,10),B=parseInt(W.paddingTop,10),q=parseInt(W.borderBottomWidth,10),$=parseInt(W.paddingBottom,10),F=ue+B+Z+$+q,G=Math.min(R.offsetHeight*5,F),O=window.getComputedStyle(x),H=parseInt(O.paddingTop,10),ae=parseInt(O.paddingBottom,10),ce=b.top+b.height/2-Sn,Y=re-ce,se=R.offsetHeight/2,K=R.offsetTop+se,oe=ue+B+K,te=F-oe;if(oe<=ce){const pe=R===ee[ee.length-1].ref.current;d.style.bottom="0px";const Pe=v.clientHeight-x.offsetTop-x.offsetHeight,we=Math.max(Y,se+(pe?ae:0)+Pe+q),he=oe+we;d.style.height=he+"px"}else{const pe=R===ee[0].ref.current;d.style.top="0px";const we=Math.max(ce,ue+x.offsetTop+(pe?H:0)+se)+te;d.style.height=we+"px",x.scrollTop=oe-ce+x.offsetTop}d.style.margin=`${Sn}px 0`,d.style.minHeight=G+"px",d.style.maxHeight=re+"px",i?.(),requestAnimationFrame(()=>y.current=!0)}},[S,l.trigger,l.valueNode,d,v,x,R,T,l.dir,i]);Ut(()=>I(),[I]);const[N,L]=p.useState();Ut(()=>{v&&L(window.getComputedStyle(v).zIndex)},[v]);const U=p.useCallback(b=>{b&&P.current===!0&&(I(),_?.(),P.current=!1)},[I,_]);return p.createElement(lP,{scope:r,contentWrapper:d,shouldExpandOnScrollRef:y,onScrollButtonChange:U},p.createElement("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N}},p.createElement(dt.div,Oe({},a,{ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}}))))}),Ph=p.forwardRef((e,n)=>{const{__scopeSelect:r,align:i="start",collisionPadding:a=Sn,...l}=e,c=rd(r);return p.createElement(xR,Oe({},c,l,{ref:n,align:i,collisionPadding:a,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[lP,od]=so(no,{}),_h="SelectViewport",aP=p.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,a=yr(_h,r),l=od(_h,r),c=ct(n,a.onViewportChange),d=p.useRef(0);return p.createElement(p.Fragment,null,p.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),p.createElement(fl.Slot,{scope:r},p.createElement(dt.div,Oe({"data-radix-select-viewport":"",role:"presentation"},i,{ref:c,style:{position:"relative",flex:1,overflow:"auto",...i.style},onScroll:tt(i.onScroll,h=>{const v=h.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:m}=l;if(m!=null&&m.current&&w){const S=Math.abs(d.current-v.scrollTop);if(S>0){const y=window.innerHeight-Sn*2,P=parseFloat(w.style.minHeight),x=parseFloat(w.style.height),R=Math.max(P,x);if(R<y){const T=R+S,_=Math.min(y,T),I=T-_;w.style.height=_+"px",w.style.bottom==="0px"&&(v.scrollTop=I>0?I:0,w.style.justifyContent="flex-end")}}}d.current=v.scrollTop})}))))}),uP="SelectGroup",[cP,dP]=so(uP),fP=p.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,a=Yc();return p.createElement(cP,{scope:r,id:a},p.createElement(dt.div,Oe({role:"group","aria-labelledby":a},i,{ref:n})))}),pP="SelectLabel",gP=p.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,a=dP(pP,r);return p.createElement(dt.div,Oe({id:a.id},i,{ref:n}))}),wc="SelectItem",[hP,Nv]=so(wc),mP=p.forwardRef((e,n)=>{const{__scopeSelect:r,value:i,disabled:a=!1,textValue:l,...c}=e,d=vr(wc,r),h=yr(wc,r),v=d.value===i,[w,m]=p.useState(l??""),[S,y]=p.useState(!1),P=ct(n,T=>{var _;return(_=h.itemRefCallback)===null||_===void 0?void 0:_.call(h,T,i,a)}),x=Yc(),R=()=>{a||(d.onValueChange(i),d.onOpenChange(!1))};return p.createElement(hP,{scope:r,value:i,disabled:a,textId:x,isSelected:v,onItemTextChange:p.useCallback(T=>{m(_=>{var I;return _||((I=T?.textContent)!==null&&I!==void 0?I:"").trim()})},[])},p.createElement(fl.ItemSlot,{scope:r,value:i,disabled:a,textValue:w},p.createElement(dt.div,Oe({role:"option","aria-labelledby":x,"data-highlighted":S?"":void 0,"aria-selected":v&&S,"data-state":v?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1},c,{ref:P,onFocus:tt(c.onFocus,()=>y(!0)),onBlur:tt(c.onBlur,()=>y(!1)),onPointerUp:tt(c.onPointerUp,R),onPointerMove:tt(c.onPointerMove,T=>{if(a){var _;(_=h.onItemLeave)===null||_===void 0||_.call(h)}else T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:tt(c.onPointerLeave,T=>{if(T.currentTarget===document.activeElement){var _;(_=h.onItemLeave)===null||_===void 0||_.call(h)}}),onKeyDown:tt(c.onKeyDown,T=>{var _;((_=h.searchRef)===null||_===void 0?void 0:_.current)!==""&&T.key===" "||(GR.includes(T.key)&&R(),T.key===" "&&T.preventDefault())})}))))}),As="SelectItemText",vP=p.forwardRef((e,n)=>{const{__scopeSelect:r,className:i,style:a,...l}=e,c=vr(As,r),d=yr(As,r),h=Nv(As,r),v=YR(As,r),[w,m]=p.useState(null),S=ct(n,T=>m(T),h.onItemTextChange,T=>{var _;return(_=d.itemTextRefCallback)===null||_===void 0?void 0:_.call(d,T,h.value,h.disabled)}),y=w?.textContent,P=p.useMemo(()=>p.createElement("option",{key:h.value,value:h.value,disabled:h.disabled},y),[h.disabled,h.value,y]),{onNativeOptionAdd:x,onNativeOptionRemove:R}=v;return Ut(()=>(x(P),()=>R(P)),[x,R,P]),p.createElement(p.Fragment,null,p.createElement(dt.span,Oe({id:h.textId},l,{ref:S})),h.isSelected&&c.valueNode&&!c.valueNodeHasChildren?mr.createPortal(l.children,c.valueNode):null)}),yP="SelectItemIndicator",wP=p.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e;return Nv(yP,r).isSelected?p.createElement(dt.span,Oe({"aria-hidden":!0},i,{ref:n})):null}),Th="SelectScrollUpButton",SP=p.forwardRef((e,n)=>{const r=yr(Th,e.__scopeSelect),i=od(Th,e.__scopeSelect),[a,l]=p.useState(!1),c=ct(n,i.onScrollButtonChange);return Ut(()=>{if(r.viewport&&r.isPositioned){let v=function(){const w=h.scrollTop>0;l(w)};var d=v;const h=r.viewport;return v(),h.addEventListener("scroll",v),()=>h.removeEventListener("scroll",v)}},[r.viewport,r.isPositioned]),a?p.createElement(bv,Oe({},e,{ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=r;d&&h&&(d.scrollTop=d.scrollTop-h.offsetHeight)}})):null}),Ih="SelectScrollDownButton",xP=p.forwardRef((e,n)=>{const r=yr(Ih,e.__scopeSelect),i=od(Ih,e.__scopeSelect),[a,l]=p.useState(!1),c=ct(n,i.onScrollButtonChange);return Ut(()=>{if(r.viewport&&r.isPositioned){let v=function(){const w=h.scrollHeight-h.clientHeight,m=Math.ceil(h.scrollTop)<w;l(m)};var d=v;const h=r.viewport;return v(),h.addEventListener("scroll",v),()=>h.removeEventListener("scroll",v)}},[r.viewport,r.isPositioned]),a?p.createElement(bv,Oe({},e,{ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=r;d&&h&&(d.scrollTop=d.scrollTop+h.offsetHeight)}})):null}),bv=p.forwardRef((e,n)=>{const{__scopeSelect:r,onAutoScroll:i,...a}=e,l=yr("SelectScrollButton",r),c=p.useRef(null),d=pl(r),h=p.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return p.useEffect(()=>()=>h(),[h]),Ut(()=>{var v;const w=d().find(m=>m.ref.current===document.activeElement);w==null||(v=w.ref.current)===null||v===void 0||v.scrollIntoView({block:"nearest"})},[d]),p.createElement(dt.div,Oe({"aria-hidden":!0},a,{ref:n,style:{flexShrink:0,...a.style},onPointerDown:tt(a.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(i,50))}),onPointerMove:tt(a.onPointerMove,()=>{var v;(v=l.onItemLeave)===null||v===void 0||v.call(l),c.current===null&&(c.current=window.setInterval(i,50))}),onPointerLeave:tt(a.onPointerLeave,()=>{h()})}))}),Av=p.forwardRef((e,n)=>{const{value:r,...i}=e,a=p.useRef(null),l=ct(n,a),c=RR(r);return p.useEffect(()=>{const d=a.current,h=window.HTMLSelectElement.prototype,w=Object.getOwnPropertyDescriptor(h,"value").set;if(c!==r&&w){const m=new Event("change",{bubbles:!0});w.call(d,r),d.dispatchEvent(m)}},[c,r]),p.createElement(kR,{asChild:!0},p.createElement("select",Oe({},i,{ref:l,defaultValue:r})))});Av.displayName="BubbleSelect";function Lv(e){const n=Cn(e),r=p.useRef(""),i=p.useRef(0),a=p.useCallback(c=>{const d=r.current+c;n(d),(function h(v){r.current=v,window.clearTimeout(i.current),v!==""&&(i.current=window.setTimeout(()=>h(""),1e3))})(d)},[n]),l=p.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,a,l]}function Fv(e,n,r){const a=n.length>1&&Array.from(n).every(v=>v===n[0])?n[0]:n,l=r?e.indexOf(r):-1;let c=CP(e,Math.max(l,0));a.length===1&&(c=c.filter(v=>v!==r));const h=c.find(v=>v.textValue.toLowerCase().startsWith(a.toLowerCase()));return h!==r?h:void 0}function CP(e,n){return e.map((r,i)=>e[(n+i)%e.length])}const EP=QR,RP=JR,PP=tP,_P=nP,TP=rP,IP=oP,DP=aP,Wu=fP,Dh=gP,OP=mP,MP=vP,kP=wP,$P=SP,NP=xP;function id(e,n){if(e==null)return{};var r={},i=Object.keys(e),a,l;for(l=0;l<i.length;l++)a=i[l],!(n.indexOf(a)>=0)&&(r[a]=e[a]);return r}var bP=["color"],AP=p.forwardRef(function(e,n){var r=e.color,i=r===void 0?"currentColor":r,a=id(e,bP);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:n}),p.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),LP=["color"],Sc=p.forwardRef(function(e,n){var r=e.color,i=r===void 0?"currentColor":r,a=id(e,LP);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:n}),p.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),FP=["color"],jP=p.forwardRef(function(e,n){var r=e.color,i=r===void 0?"currentColor":r,a=id(e,FP);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:n}),p.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))});const Qr=({value:e,onChange:n,label:r="Select",placeholder:i="Select a fruit…",groups:a,labelType:l="col"})=>{const c=a?.length===1;return E.jsxs(EP,{value:e,onValueChange:n,children:[E.jsxs(Wu,{className:gt("flex gap-1",{"flex-row items-center gap-2":l==="row","flex-col":l==="col"}),children:[E.jsx(Dh,{className:"whitespace-nowrap",children:r}),E.jsxs(RP,{className:"justify-between bg-white text-black dark:text-white dark:bg-grey-900 whitespace-nowrap h-[36px] border-[1.5px] border-grey-700 rounded p-3 inline-flex items-center leading-none gap-[5px] shadow-[0_2px_10px] shadow-black/10 focus:shadow-[0_0_0_2px] focus:shadow-black data-[placeholder]:text-white outline-none","aria-label":r,children:[E.jsx(PP,{placeholder:i}),E.jsx(_P,{children:E.jsx(Sc,{})})]})]}),E.jsx(TP,{children:E.jsxs(IP,{className:"z-50 bg-white/80 dark:bg-grey-900/80 backdrop-filter backdrop-blur overflow-hidden border-[1.5px] border-grey-700 rounded p-3 shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)]",children:[E.jsx($P,{className:"flex items-center justify-center h-[25px] cursor-default dark:text-white text-black",children:E.jsx(jP,{})}),E.jsx(DP,{className:"p-[5px]",children:c?E.jsx(Wu,{children:a[0].items.map(d=>E.jsx(Oh,{value:d.value,disabled:d.disabled,children:d.label}))}):a.map((d,h)=>E.jsxs(Wu,{children:[E.jsx(Dh,{className:"text-xs leading-[25px]",children:d.label}),d.items.map(v=>E.jsx(Oh,{value:v.value,disabled:v.disabled,children:v.label},v.value))]},d.label))}),E.jsx(NP,{className:"flex items-center justify-center h-[25px] cursor-default dark:text-white text-black",children:E.jsx(Sc,{})})]})})]})},Oh=p.forwardRef(({children:e,className:n,...r},i)=>E.jsxs(OP,{className:gt("text-[13px] leading-none rounded-[3px] flex items-center h-[25px] pr-[35px] pl-[25px] relative select-none data-[disabled]:text-grey-400 data-[disabled]:pointer-events-none data-[highlighted]:outline-none data-[highlighted]:bg-grey-600 data-[highlighted]:text-white  text-black dark:text-white",n),...r,ref:i,children:[E.jsx(MP,{children:e}),E.jsx(kP,{className:"absolute left-0 w-[25px] inline-flex items-center justify-center",children:E.jsx(AP,{})})]}));function sd(e){const n=e+"CollectionProvider",[r,i]=Zn(n),[a,l]=r(n,{collectionRef:{current:null},itemMap:new Map}),c=x=>{const{scope:R,children:T}=x,_=Ye.useRef(null),I=Ye.useRef(new Map).current;return E.jsx(a,{scope:R,itemMap:I,collectionRef:_,children:T})};c.displayName=n;const d=e+"CollectionSlot",h=ni(d),v=Ye.forwardRef((x,R)=>{const{scope:T,children:_}=x,I=l(d,T),N=Qe(R,I.collectionRef);return E.jsx(h,{ref:N,children:_})});v.displayName=d;const w=e+"CollectionItemSlot",m="data-radix-collection-item",S=ni(w),y=Ye.forwardRef((x,R)=>{const{scope:T,children:_,...I}=x,N=Ye.useRef(null),L=Qe(R,N),U=l(w,T);return Ye.useEffect(()=>(U.itemMap.set(N,{ref:N,...I}),()=>void U.itemMap.delete(N))),E.jsx(S,{[m]:"",ref:L,children:_})});y.displayName=w;function P(x){const R=l(e+"CollectionConsumer",x);return Ye.useCallback(()=>{const _=R.collectionRef.current;if(!_)return[];const I=Array.from(_.querySelectorAll(`[${m}]`));return Array.from(R.itemMap.values()).sort((U,b)=>I.indexOf(U.ref.current)-I.indexOf(b.ref.current))},[R.collectionRef,R.itemMap])}return[{Provider:c,Slot:v,ItemSlot:y},P,i]}var VP=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),zP="VisuallyHidden",ld=p.forwardRef((e,n)=>E.jsx($e.span,{...e,ref:n,style:{...VP,...e.style}}));ld.displayName=zP;var ad="ToastProvider",[ud,HP,UP]=sd("Toast"),[jv]=Zn("Toast",[UP]),[BP,gl]=jv(ad),Vv=e=>{const{__scopeToast:n,label:r="Notification",duration:i=5e3,swipeDirection:a="right",swipeThreshold:l=50,children:c}=e,[d,h]=p.useState(null),[v,w]=p.useState(0),m=p.useRef(!1),S=p.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${ad}\`. Expected non-empty \`string\`.`),E.jsx(ud.Provider,{scope:n,children:E.jsx(BP,{scope:n,label:r,duration:i,swipeDirection:a,swipeThreshold:l,toastCount:v,viewport:d,onViewportChange:h,onToastAdd:p.useCallback(()=>w(y=>y+1),[]),onToastRemove:p.useCallback(()=>w(y=>y-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:S,children:c})})};Vv.displayName=ad;var zv="ToastViewport",WP=["F8"],xc="toast.viewportPause",Cc="toast.viewportResume",Hv=p.forwardRef((e,n)=>{const{__scopeToast:r,hotkey:i=WP,label:a="Notifications ({hotkey})",...l}=e,c=gl(zv,r),d=HP(r),h=p.useRef(null),v=p.useRef(null),w=p.useRef(null),m=p.useRef(null),S=Qe(n,m,c.onViewportChange),y=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=c.toastCount>0;p.useEffect(()=>{const R=T=>{i.length!==0&&i.every(I=>T[I]||T.code===I)&&m.current?.focus()};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[i]),p.useEffect(()=>{const R=h.current,T=m.current;if(P&&R&&T){const _=()=>{if(!c.isClosePausedRef.current){const U=new CustomEvent(xc);T.dispatchEvent(U),c.isClosePausedRef.current=!0}},I=()=>{if(c.isClosePausedRef.current){const U=new CustomEvent(Cc);T.dispatchEvent(U),c.isClosePausedRef.current=!1}},N=U=>{!R.contains(U.relatedTarget)&&I()},L=()=>{R.contains(document.activeElement)||I()};return R.addEventListener("focusin",_),R.addEventListener("focusout",N),R.addEventListener("pointermove",_),R.addEventListener("pointerleave",L),window.addEventListener("blur",_),window.addEventListener("focus",I),()=>{R.removeEventListener("focusin",_),R.removeEventListener("focusout",N),R.removeEventListener("pointermove",_),R.removeEventListener("pointerleave",L),window.removeEventListener("blur",_),window.removeEventListener("focus",I)}}},[P,c.isClosePausedRef]);const x=p.useCallback(({tabbingDirection:R})=>{const _=d().map(I=>{const N=I.ref.current,L=[N,...i_(N)];return R==="forwards"?L:L.reverse()});return(R==="forwards"?_.reverse():_).flat()},[d]);return p.useEffect(()=>{const R=m.current;if(R){const T=_=>{const I=_.altKey||_.ctrlKey||_.metaKey;if(_.key==="Tab"&&!I){const L=document.activeElement,U=_.shiftKey;if(_.target===R&&U){v.current?.focus();return}const X=x({tabbingDirection:U?"backwards":"forwards"}),Q=X.findIndex(ee=>ee===L);Gu(X.slice(Q+1))?_.preventDefault():U?v.current?.focus():w.current?.focus()}};return R.addEventListener("keydown",T),()=>R.removeEventListener("keydown",T)}},[d,x]),E.jsxs(ax,{ref:h,role:"region","aria-label":a.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:P?void 0:"none"},children:[P&&E.jsx(Ec,{ref:v,onFocusFromOutsideViewport:()=>{const R=x({tabbingDirection:"forwards"});Gu(R)}}),E.jsx(ud.Slot,{scope:r,children:E.jsx($e.ol,{tabIndex:-1,...l,ref:S})}),P&&E.jsx(Ec,{ref:w,onFocusFromOutsideViewport:()=>{const R=x({tabbingDirection:"backwards"});Gu(R)}})]})});Hv.displayName=zv;var Uv="ToastFocusProxy",Ec=p.forwardRef((e,n)=>{const{__scopeToast:r,onFocusFromOutsideViewport:i,...a}=e,l=gl(Uv,r);return E.jsx(ld,{tabIndex:0,...a,ref:n,style:{position:"fixed"},onFocus:c=>{const d=c.relatedTarget;!l.viewport?.contains(d)&&i()}})});Ec.displayName=Uv;var ui="Toast",GP="toast.swipeStart",KP="toast.swipeMove",XP="toast.swipeCancel",qP="toast.swipeEnd",Bv=p.forwardRef((e,n)=>{const{forceMount:r,open:i,defaultOpen:a,onOpenChange:l,...c}=e,[d,h]=el({prop:i,defaultProp:a??!0,onChange:l,caller:ui});return E.jsx(Pn,{present:r||d,children:E.jsx(ZP,{open:d,...c,ref:n,onClose:()=>h(!1),onPause:Rt(e.onPause),onResume:Rt(e.onResume),onSwipeStart:Se(e.onSwipeStart,v=>{v.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Se(e.onSwipeMove,v=>{const{x:w,y:m}=v.detail.delta;v.currentTarget.setAttribute("data-swipe","move"),v.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${w}px`),v.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:Se(e.onSwipeCancel,v=>{v.currentTarget.setAttribute("data-swipe","cancel"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),v.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Se(e.onSwipeEnd,v=>{const{x:w,y:m}=v.detail.delta;v.currentTarget.setAttribute("data-swipe","end"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),v.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${w}px`),v.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),h(!1)})})})});Bv.displayName=ui;var[YP,QP]=jv(ui,{onClose(){}}),ZP=p.forwardRef((e,n)=>{const{__scopeToast:r,type:i="foreground",duration:a,open:l,onClose:c,onEscapeKeyDown:d,onPause:h,onResume:v,onSwipeStart:w,onSwipeMove:m,onSwipeCancel:S,onSwipeEnd:y,...P}=e,x=gl(ui,r),[R,T]=p.useState(null),_=Qe(n,W=>T(W)),I=p.useRef(null),N=p.useRef(null),L=a||x.duration,U=p.useRef(0),b=p.useRef(L),A=p.useRef(0),{onToastAdd:X,onToastRemove:Q}=x,ee=Rt(()=>{R?.contains(document.activeElement)&&x.viewport?.focus(),c()}),re=p.useCallback(W=>{!W||W===1/0||(window.clearTimeout(A.current),U.current=new Date().getTime(),A.current=window.setTimeout(ee,W))},[ee]);p.useEffect(()=>{const W=x.viewport;if(W){const ue=()=>{re(b.current),v?.()},B=()=>{const q=new Date().getTime()-U.current;b.current=b.current-q,window.clearTimeout(A.current),h?.()};return W.addEventListener(xc,B),W.addEventListener(Cc,ue),()=>{W.removeEventListener(xc,B),W.removeEventListener(Cc,ue)}}},[x.viewport,L,h,v,re]),p.useEffect(()=>{l&&!x.isClosePausedRef.current&&re(L)},[l,L,x.isClosePausedRef,re]),p.useEffect(()=>(X(),()=>Q()),[X,Q]);const Z=p.useMemo(()=>R?Yv(R):null,[R]);return x.viewport?E.jsxs(E.Fragment,{children:[Z&&E.jsx(JP,{__scopeToast:r,role:"status","aria-live":i==="foreground"?"assertive":"polite",children:Z}),E.jsx(YP,{scope:r,onClose:ee,children:mr.createPortal(E.jsx(ud.ItemSlot,{scope:r,children:E.jsx(lx,{asChild:!0,onEscapeKeyDown:Se(d,()=>{x.isFocusedToastEscapeKeyDownRef.current||ee(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:E.jsx($e.li,{tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":x.swipeDirection,...P,ref:_,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Se(e.onKeyDown,W=>{W.key==="Escape"&&(d?.(W.nativeEvent),W.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,ee()))}),onPointerDown:Se(e.onPointerDown,W=>{W.button===0&&(I.current={x:W.clientX,y:W.clientY})}),onPointerMove:Se(e.onPointerMove,W=>{if(!I.current)return;const ue=W.clientX-I.current.x,B=W.clientY-I.current.y,q=!!N.current,$=["left","right"].includes(x.swipeDirection),F=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,G=$?F(0,ue):0,O=$?0:F(0,B),H=W.pointerType==="touch"?10:2,ae={x:G,y:O},ce={originalEvent:W,delta:ae};q?(N.current=ae,Ls(KP,m,ce,{discrete:!1})):Mh(ae,x.swipeDirection,H)?(N.current=ae,Ls(GP,w,ce,{discrete:!1}),W.target.setPointerCapture(W.pointerId)):(Math.abs(ue)>H||Math.abs(B)>H)&&(I.current=null)}),onPointerUp:Se(e.onPointerUp,W=>{const ue=N.current,B=W.target;if(B.hasPointerCapture(W.pointerId)&&B.releasePointerCapture(W.pointerId),N.current=null,I.current=null,ue){const q=W.currentTarget,$={originalEvent:W,delta:ue};Mh(ue,x.swipeDirection,x.swipeThreshold)?Ls(qP,y,$,{discrete:!0}):Ls(XP,S,$,{discrete:!0}),q.addEventListener("click",F=>F.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),JP=e=>{const{__scopeToast:n,children:r,...i}=e,a=gl(ui,n),[l,c]=p.useState(!1),[d,h]=p.useState(!1);return r_(()=>c(!0)),p.useEffect(()=>{const v=window.setTimeout(()=>h(!0),1e3);return()=>window.clearTimeout(v)},[]),d?null:E.jsx(nl,{asChild:!0,children:E.jsx(ld,{...i,children:l&&E.jsxs(E.Fragment,{children:[a.label," ",r]})})})},e_="ToastTitle",Wv=p.forwardRef((e,n)=>{const{__scopeToast:r,...i}=e;return E.jsx($e.div,{...i,ref:n})});Wv.displayName=e_;var t_="ToastDescription",Gv=p.forwardRef((e,n)=>{const{__scopeToast:r,...i}=e;return E.jsx($e.div,{...i,ref:n})});Gv.displayName=t_;var Kv="ToastAction",n_=p.forwardRef((e,n)=>{const{altText:r,...i}=e;return r.trim()?E.jsx(qv,{altText:r,asChild:!0,children:E.jsx(cd,{...i,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${Kv}\`. Expected non-empty \`string\`.`),null)});n_.displayName=Kv;var Xv="ToastClose",cd=p.forwardRef((e,n)=>{const{__scopeToast:r,...i}=e,a=QP(Xv,r);return E.jsx(qv,{asChild:!0,children:E.jsx($e.button,{type:"button",...i,ref:n,onClick:Se(e.onClick,a.onClose)})})});cd.displayName=Xv;var qv=p.forwardRef((e,n)=>{const{__scopeToast:r,altText:i,...a}=e;return E.jsx($e.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...a,ref:n})});function Yv(e){const n=[];return Array.from(e.childNodes).forEach(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent&&n.push(i.textContent),o_(i)){const a=i.ariaHidden||i.hidden||i.style.display==="none",l=i.dataset.radixToastAnnounceExclude==="";if(!a)if(l){const c=i.dataset.radixToastAnnounceAlt;c&&n.push(c)}else n.push(...Yv(i))}}),n}function Ls(e,n,r,{discrete:i}){const a=r.originalEvent.currentTarget,l=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});n&&a.addEventListener(e,n,{once:!0}),i?bc(a,l):a.dispatchEvent(l)}var Mh=(e,n,r=0)=>{const i=Math.abs(e.x),a=Math.abs(e.y),l=i>a;return n==="left"||n==="right"?l&&i>r:!l&&a>r};function r_(e=()=>{}){const n=Rt(e);xn(()=>{let r=0,i=0;return r=window.requestAnimationFrame(()=>i=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(i)}},[n])}function o_(e){return e.nodeType===e.ELEMENT_NODE}function i_(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function Gu(e){const n=document.activeElement;return e.some(r=>r===n?!0:(r.focus(),document.activeElement!==n))}var s_=Vv,l_=Hv,a_=Bv,u_=Wv,c_=Gv,d_=cd;const f_=({title:e,titleId:n,...r})=>E.jsxs("svg",{viewBox:"0 0 18 18",width:18,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...r,children:[e?E.jsx("title",{id:n,children:e}):null,E.jsx("path",{d:"M9 16.5a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15ZM11.25 6.75l-4.5 4.5M6.75 6.75l4.5 4.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),p_=({title:e,titleId:n,...r})=>E.jsxs("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...r,children:[e?E.jsx("title",{id:n,children:e}):null,E.jsx("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM12 16v-4M12 8h.01",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),g_=({title:e,titleId:n,...r})=>E.jsxs("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...r,children:[e?E.jsx("title",{id:n,children:e}):null,E.jsx("path",{d:"M16.5 8.31V9a7.5 7.5 0 1 1-4.447-6.855",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{d:"M16.5 3 9 10.508l-2.25-2.25",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),h_=({title:e,titleId:n,...r})=>E.jsxs("svg",{viewBox:"0 0 18 18",width:18,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n,...r,children:[e?E.jsx("title",{id:n,children:e}):null,E.jsx("path",{d:"M7.718 2.895 1.366 13.5a1.5 1.5 0 0 0 1.282 2.25h12.705a1.5 1.5 0 0 0 1.283-2.25L10.283 2.895a1.5 1.5 0 0 0-2.565 0v0ZM9 6.75v3M9 12.75h.008",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),m_=({toast:e,open:n,setOpen:r})=>E.jsxs(s_,{children:[E.jsxs(a_,{open:n,onOpenChange:i=>{e.preventClose||r(i)},className:gt("z-50 fixed bottom-4 md:left-1/2 md:-translate-x-[50%] inset-x-4 w-auto shadow-lg md:max-w-[658px] duration-300","radix-state-open:animate-fade-in","radix-state-closed:animate-toast-hide","radix-swipe-end:animate-toast-swipe-out","translate-x-radix-toast-swipe-move-x","radix-swipe-cancel:translate-x-0 radix-swipe-cancel:duration-200 radix-swipe-cancel:ease-[ease]","px-[40px] md:px-[58px] py-6 flex flex-col border rounded-[4px]",{"bg-green-100 text-green-600 border-green-600":e.status==="success","bg-red-200 text-red-600 border-red-600":e.status==="error","bg-blue-100 text-blue-700 border-blue-600":e.status==="info","bg-orange-200 text-orange-600 border-orange-600":e.status==="warning"},{"h-[72px]":!e.description}),children:[e.status==="success"?E.jsx(g_,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}):e.status==="warning"?E.jsx(h_,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}):e.status==="error"?E.jsx(f_,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}):E.jsx(p_,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}),E.jsx(u_,{className:"text-grey-900 font-bold text-sm",children:e.title}),e.description&&E.jsx(c_,{className:"mt-2 text-[10px] md:text-xs text-grey-800",children:e.description}),E.jsx(d_,{className:"absolute top-7 right-5 md:right-7",children:E.jsx(Ws,{className:"w-4 h-4 text-grey-900"})})]}),E.jsx(l_,{})]});var v_=p.createContext(void 0);function Qv(e){const n=p.useContext(v_);return e||n||"ltr"}var y_="Arrow",Zv=p.forwardRef((e,n)=>{const{children:r,width:i=10,height:a=5,...l}=e;return E.jsx($e.svg,{...l,ref:n,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:E.jsx("polygon",{points:"0,0 30,0 15,10"})})});Zv.displayName=y_;var w_=Zv;function S_(e){const[n,r]=p.useState(void 0);return xn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let c,d;if("borderBoxSize"in l){const h=l.borderBoxSize,v=Array.isArray(h)?h[0]:h;c=v.inlineSize,d=v.blockSize}else c=e.offsetWidth,d=e.offsetHeight;r({width:c,height:d})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),n}var dd="Popper",[Jv,ey]=Zn(dd),[x_,ty]=Jv(dd),ny=e=>{const{__scopePopper:n,children:r}=e,[i,a]=p.useState(null);return E.jsx(x_,{scope:n,anchor:i,onAnchorChange:a,children:r})};ny.displayName=dd;var ry="PopperAnchor",oy=p.forwardRef((e,n)=>{const{__scopePopper:r,virtualRef:i,...a}=e,l=ty(ry,r),c=p.useRef(null),d=Qe(n,c),h=p.useRef(null);return p.useEffect(()=>{const v=h.current;h.current=i?.current||c.current,v!==h.current&&l.onAnchorChange(h.current)}),i?null:E.jsx($e.div,{...a,ref:d})});oy.displayName=ry;var fd="PopperContent",[C_,E_]=Jv(fd),iy=p.forwardRef((e,n)=>{const{__scopePopper:r,side:i="bottom",sideOffset:a=0,align:l="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:v=[],collisionPadding:w=0,sticky:m="partial",hideWhenDetached:S=!1,updatePositionStrategy:y="optimized",onPlaced:P,...x}=e,R=ty(fd,r),[T,_]=p.useState(null),I=Qe(n,K=>_(K)),[N,L]=p.useState(null),U=S_(N),b=U?.width??0,A=U?.height??0,X=i+(l!=="center"?"-"+l:""),Q=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},ee=Array.isArray(v)?v:[v],re=ee.length>0,Z={padding:Q,boundary:ee.filter(P_),altBoundary:re},{refs:W,floatingStyles:ue,placement:B,isPositioned:q,middlewareData:$}=pv({strategy:"fixed",placement:X,whileElementsMounted:(...K)=>dv(...K,{animationFrame:y==="always"}),elements:{reference:R.anchor},middleware:[gv({mainAxis:a+A,alignmentAxis:c}),h&&hv({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?mv():void 0,...Z}),h&&vv({...Z}),yv({...Z,apply:({elements:K,rects:oe,availableWidth:te,availableHeight:de})=>{const{width:pe,height:Pe}=oe.reference,we=K.floating.style;we.setProperty("--radix-popper-available-width",`${te}px`),we.setProperty("--radix-popper-available-height",`${de}px`),we.setProperty("--radix-popper-anchor-width",`${pe}px`),we.setProperty("--radix-popper-anchor-height",`${Pe}px`)}}),N&&Sv({element:N,padding:d}),__({arrowWidth:b,arrowHeight:A}),S&&wv({strategy:"referenceHidden",...Z})]}),[F,G]=ay(B),O=Rt(P);xn(()=>{q&&O?.()},[q,O]);const H=$.arrow?.x,ae=$.arrow?.y,ce=$.arrow?.centerOffset!==0,[Y,se]=p.useState();return xn(()=>{T&&se(window.getComputedStyle(T).zIndex)},[T]),E.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...ue,transform:q?ue.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[$.transformOrigin?.x,$.transformOrigin?.y].join(" "),...$.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:E.jsx(C_,{scope:r,placedSide:F,onArrowChange:L,arrowX:H,arrowY:ae,shouldHideArrow:ce,children:E.jsx($e.div,{"data-side":F,"data-align":G,...x,ref:I,style:{...x.style,animation:q?void 0:"none"}})})})});iy.displayName=fd;var sy="PopperArrow",R_={top:"bottom",right:"left",bottom:"top",left:"right"},ly=p.forwardRef(function(n,r){const{__scopePopper:i,...a}=n,l=E_(sy,i),c=R_[l.placedSide];return E.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:E.jsx(w_,{...a,ref:r,style:{...a.style,display:"block"}})})});ly.displayName=sy;function P_(e){return e!==null}var __=e=>({name:"transformOrigin",options:e,fn(n){const{placement:r,rects:i,middlewareData:a}=n,c=a.arrow?.centerOffset!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[v,w]=ay(r),m={start:"0%",center:"50%",end:"100%"}[w],S=(a.arrow?.x??0)+d/2,y=(a.arrow?.y??0)+h/2;let P="",x="";return v==="bottom"?(P=c?m:`${S}px`,x=`${-h}px`):v==="top"?(P=c?m:`${S}px`,x=`${i.floating.height+h}px`):v==="right"?(P=`${-h}px`,x=c?m:`${y}px`):v==="left"&&(P=`${i.floating.width+h}px`,x=c?m:`${y}px`),{data:{x:P,y:x}}}});function ay(e){const[n,r="center"]=e.split("-");return[n,r]}var T_=ny,I_=oy,D_=iy,O_=ly,Ku="rovingFocusGroup.onEntryFocus",M_={bubbles:!1,cancelable:!0},ci="RovingFocusGroup",[Rc,uy,k_]=sd(ci),[$_,cy]=Zn(ci,[k_]),[N_,b_]=$_(ci),dy=p.forwardRef((e,n)=>E.jsx(Rc.Provider,{scope:e.__scopeRovingFocusGroup,children:E.jsx(Rc.Slot,{scope:e.__scopeRovingFocusGroup,children:E.jsx(A_,{...e,ref:n})})}));dy.displayName=ci;var A_=p.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:a=!1,dir:l,currentTabStopId:c,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:h,onEntryFocus:v,preventScrollOnEntryFocus:w=!1,...m}=e,S=p.useRef(null),y=Qe(n,S),P=Qv(l),[x,R]=el({prop:c,defaultProp:d??null,onChange:h,caller:ci}),[T,_]=p.useState(!1),I=Rt(v),N=uy(r),L=p.useRef(!1),[U,b]=p.useState(0);return p.useEffect(()=>{const A=S.current;if(A)return A.addEventListener(Ku,I),()=>A.removeEventListener(Ku,I)},[I]),E.jsx(N_,{scope:r,orientation:i,dir:P,loop:a,currentTabStopId:x,onItemFocus:p.useCallback(A=>R(A),[R]),onItemShiftTab:p.useCallback(()=>_(!0),[]),onFocusableItemAdd:p.useCallback(()=>b(A=>A+1),[]),onFocusableItemRemove:p.useCallback(()=>b(A=>A-1),[]),children:E.jsx($e.div,{tabIndex:T||U===0?-1:0,"data-orientation":i,...m,ref:y,style:{outline:"none",...e.style},onMouseDown:Se(e.onMouseDown,()=>{L.current=!0}),onFocus:Se(e.onFocus,A=>{const X=!L.current;if(A.target===A.currentTarget&&X&&!T){const Q=new CustomEvent(Ku,M_);if(A.currentTarget.dispatchEvent(Q),!Q.defaultPrevented){const ee=N().filter(B=>B.focusable),re=ee.find(B=>B.active),Z=ee.find(B=>B.id===x),ue=[re,Z,...ee].filter(Boolean).map(B=>B.ref.current);gy(ue,w)}}L.current=!1}),onBlur:Se(e.onBlur,()=>_(!1))})})}),fy="RovingFocusGroupItem",py=p.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:a=!1,tabStopId:l,children:c,...d}=e,h=Zr(),v=l||h,w=b_(fy,r),m=w.currentTabStopId===v,S=uy(r),{onFocusableItemAdd:y,onFocusableItemRemove:P,currentTabStopId:x}=w;return p.useEffect(()=>{if(i)return y(),()=>P()},[i,y,P]),E.jsx(Rc.ItemSlot,{scope:r,id:v,focusable:i,active:a,children:E.jsx($e.span,{tabIndex:m?0:-1,"data-orientation":w.orientation,...d,ref:n,onMouseDown:Se(e.onMouseDown,R=>{i?w.onItemFocus(v):R.preventDefault()}),onFocus:Se(e.onFocus,()=>w.onItemFocus(v)),onKeyDown:Se(e.onKeyDown,R=>{if(R.key==="Tab"&&R.shiftKey){w.onItemShiftTab();return}if(R.target!==R.currentTarget)return;const T=j_(R,w.orientation,w.dir);if(T!==void 0){if(R.metaKey||R.ctrlKey||R.altKey||R.shiftKey)return;R.preventDefault();let I=S().filter(N=>N.focusable).map(N=>N.ref.current);if(T==="last")I.reverse();else if(T==="prev"||T==="next"){T==="prev"&&I.reverse();const N=I.indexOf(R.currentTarget);I=w.loop?V_(I,N+1):I.slice(N+1)}setTimeout(()=>gy(I))}}),children:typeof c=="function"?c({isCurrentTabStop:m,hasTabStop:x!=null}):c})})});py.displayName=fy;var L_={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function F_(e,n){return n!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function j_(e,n,r){const i=F_(e.key,r);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return L_[i]}function gy(e,n=!1){const r=document.activeElement;for(const i of e)if(i===r||(i.focus({preventScroll:n}),document.activeElement!==r))return}function V_(e,n){return e.map((r,i)=>e[(n+i)%e.length])}var z_=dy,H_=py,Pc=["Enter"," "],U_=["ArrowDown","PageUp","Home"],hy=["ArrowUp","PageDown","End"],B_=[...U_,...hy],W_={ltr:[...Pc,"ArrowRight"],rtl:[...Pc,"ArrowLeft"]},G_={ltr:["ArrowLeft"],rtl:["ArrowRight"]},di="Menu",[si,K_,X_]=sd(di),[wr,hl]=Zn(di,[X_,ey,cy]),ml=ey(),my=cy(),[q_,Sr]=wr(di),[Y_,fi]=wr(di),vy=e=>{const{__scopeMenu:n,open:r=!1,children:i,dir:a,onOpenChange:l,modal:c=!0}=e,d=ml(n),[h,v]=p.useState(null),w=p.useRef(!1),m=Rt(l),S=Qv(a);return p.useEffect(()=>{const y=()=>{w.current=!0,document.addEventListener("pointerdown",P,{capture:!0,once:!0}),document.addEventListener("pointermove",P,{capture:!0,once:!0})},P=()=>w.current=!1;return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",P,{capture:!0}),document.removeEventListener("pointermove",P,{capture:!0})}},[]),E.jsx(T_,{...d,children:E.jsx(q_,{scope:n,open:r,onOpenChange:m,content:h,onContentChange:v,children:E.jsx(Y_,{scope:n,onClose:p.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:w,dir:S,modal:c,children:i})})})};vy.displayName=di;var Q_="MenuAnchor",pd=p.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e,a=ml(r);return E.jsx(I_,{...a,...i,ref:n})});pd.displayName=Q_;var gd="MenuPortal",[Z_,yy]=wr(gd,{forceMount:void 0}),wy=e=>{const{__scopeMenu:n,forceMount:r,children:i,container:a}=e,l=Sr(gd,n);return E.jsx(Z_,{scope:n,forceMount:r,children:E.jsx(Pn,{present:r||l.open,children:E.jsx(nl,{asChild:!0,container:a,children:i})})})};wy.displayName=gd;var Ht="MenuContent",[J_,hd]=wr(Ht),Sy=p.forwardRef((e,n)=>{const r=yy(Ht,e.__scopeMenu),{forceMount:i=r.forceMount,...a}=e,l=Sr(Ht,e.__scopeMenu),c=fi(Ht,e.__scopeMenu);return E.jsx(si.Provider,{scope:e.__scopeMenu,children:E.jsx(Pn,{present:i||l.open,children:E.jsx(si.Slot,{scope:e.__scopeMenu,children:c.modal?E.jsx(eT,{...a,ref:n}):E.jsx(tT,{...a,ref:n})})})})}),eT=p.forwardRef((e,n)=>{const r=Sr(Ht,e.__scopeMenu),i=p.useRef(null),a=Qe(n,i);return p.useEffect(()=>{const l=i.current;if(l)return Vc(l)},[]),E.jsx(md,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Se(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),tT=p.forwardRef((e,n)=>{const r=Sr(Ht,e.__scopeMenu);return E.jsx(md,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),nT=ni("MenuContent.ScrollLock"),md=p.forwardRef((e,n)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:c,disableOutsidePointerEvents:d,onEntryFocus:h,onEscapeKeyDown:v,onPointerDownOutside:w,onFocusOutside:m,onInteractOutside:S,onDismiss:y,disableOutsideScroll:P,...x}=e,R=Sr(Ht,r),T=fi(Ht,r),_=ml(r),I=my(r),N=K_(r),[L,U]=p.useState(null),b=p.useRef(null),A=Qe(n,b,R.onContentChange),X=p.useRef(0),Q=p.useRef(""),ee=p.useRef(0),re=p.useRef(null),Z=p.useRef("right"),W=p.useRef(0),ue=P?jc:p.Fragment,B=P?{as:nT,allowPinchZoom:!0}:void 0,q=F=>{const G=Q.current+F,O=N().filter(K=>!K.disabled),H=document.activeElement,ae=O.find(K=>K.ref.current===H)?.textValue,ce=O.map(K=>K.textValue),Y=gT(ce,G,ae),se=O.find(K=>K.textValue===Y)?.ref.current;(function K(oe){Q.current=oe,window.clearTimeout(X.current),oe!==""&&(X.current=window.setTimeout(()=>K(""),1e3))})(G),se&&setTimeout(()=>se.focus())};p.useEffect(()=>()=>window.clearTimeout(X.current),[]),tm();const $=p.useCallback(F=>Z.current===re.current?.side&&mT(F,re.current?.area),[]);return E.jsx(J_,{scope:r,searchRef:Q,onItemEnter:p.useCallback(F=>{$(F)&&F.preventDefault()},[$]),onItemLeave:p.useCallback(F=>{$(F)||(b.current?.focus(),U(null))},[$]),onTriggerLeave:p.useCallback(F=>{$(F)&&F.preventDefault()},[$]),pointerGraceTimerRef:ee,onPointerGraceIntentChange:p.useCallback(F=>{re.current=F},[]),children:E.jsx(ue,{...B,children:E.jsx(Ac,{asChild:!0,trapped:a,onMountAutoFocus:Se(l,F=>{F.preventDefault(),b.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:E.jsx(tl,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:v,onPointerDownOutside:w,onFocusOutside:m,onInteractOutside:S,onDismiss:y,children:E.jsx(z_,{asChild:!0,...I,dir:T.dir,orientation:"vertical",loop:i,currentTabStopId:L,onCurrentTabStopIdChange:U,onEntryFocus:Se(h,F=>{T.isUsingKeyboardRef.current||F.preventDefault()}),preventScrollOnEntryFocus:!0,children:E.jsx(D_,{role:"menu","aria-orientation":"vertical","data-state":Ay(R.open),"data-radix-menu-content":"",dir:T.dir,..._,...x,ref:A,style:{outline:"none",...x.style},onKeyDown:Se(x.onKeyDown,F=>{const O=F.target.closest("[data-radix-menu-content]")===F.currentTarget,H=F.ctrlKey||F.altKey||F.metaKey,ae=F.key.length===1;O&&(F.key==="Tab"&&F.preventDefault(),!H&&ae&&q(F.key));const ce=b.current;if(F.target!==ce||!B_.includes(F.key))return;F.preventDefault();const se=N().filter(K=>!K.disabled).map(K=>K.ref.current);hy.includes(F.key)&&se.reverse(),fT(se)}),onBlur:Se(e.onBlur,F=>{F.currentTarget.contains(F.target)||(window.clearTimeout(X.current),Q.current="")}),onPointerMove:Se(e.onPointerMove,li(F=>{const G=F.target,O=W.current!==F.clientX;if(F.currentTarget.contains(G)&&O){const H=F.clientX>W.current?"right":"left";Z.current=H,W.current=F.clientX}}))})})})})})})});Sy.displayName=Ht;var rT="MenuGroup",vd=p.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e;return E.jsx($e.div,{role:"group",...i,ref:n})});vd.displayName=rT;var oT="MenuLabel",xy=p.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e;return E.jsx($e.div,{...i,ref:n})});xy.displayName=oT;var Ys="MenuItem",kh="menu.itemSelect",vl=p.forwardRef((e,n)=>{const{disabled:r=!1,onSelect:i,...a}=e,l=p.useRef(null),c=fi(Ys,e.__scopeMenu),d=hd(Ys,e.__scopeMenu),h=Qe(n,l),v=p.useRef(!1),w=()=>{const m=l.current;if(!r&&m){const S=new CustomEvent(kh,{bubbles:!0,cancelable:!0});m.addEventListener(kh,y=>i?.(y),{once:!0}),bc(m,S),S.defaultPrevented?v.current=!1:c.onClose()}};return E.jsx(Cy,{...a,ref:h,disabled:r,onClick:Se(e.onClick,w),onPointerDown:m=>{e.onPointerDown?.(m),v.current=!0},onPointerUp:Se(e.onPointerUp,m=>{v.current||m.currentTarget?.click()}),onKeyDown:Se(e.onKeyDown,m=>{const S=d.searchRef.current!=="";r||S&&m.key===" "||Pc.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});vl.displayName=Ys;var Cy=p.forwardRef((e,n)=>{const{__scopeMenu:r,disabled:i=!1,textValue:a,...l}=e,c=hd(Ys,r),d=my(r),h=p.useRef(null),v=Qe(n,h),[w,m]=p.useState(!1),[S,y]=p.useState("");return p.useEffect(()=>{const P=h.current;P&&y((P.textContent??"").trim())},[l.children]),E.jsx(si.ItemSlot,{scope:r,disabled:i,textValue:a??S,children:E.jsx(H_,{asChild:!0,...d,focusable:!i,children:E.jsx($e.div,{role:"menuitem","data-highlighted":w?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...l,ref:v,onPointerMove:Se(e.onPointerMove,li(P=>{i?c.onItemLeave(P):(c.onItemEnter(P),P.defaultPrevented||P.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Se(e.onPointerLeave,li(P=>c.onItemLeave(P))),onFocus:Se(e.onFocus,()=>m(!0)),onBlur:Se(e.onBlur,()=>m(!1))})})})}),iT="MenuCheckboxItem",Ey=p.forwardRef((e,n)=>{const{checked:r=!1,onCheckedChange:i,...a}=e;return E.jsx(Iy,{scope:e.__scopeMenu,checked:r,children:E.jsx(vl,{role:"menuitemcheckbox","aria-checked":Qs(r)?"mixed":r,...a,ref:n,"data-state":wd(r),onSelect:Se(a.onSelect,()=>i?.(Qs(r)?!0:!r),{checkForDefaultPrevented:!1})})})});Ey.displayName=iT;var Ry="MenuRadioGroup",[sT,lT]=wr(Ry,{value:void 0,onValueChange:()=>{}}),Py=p.forwardRef((e,n)=>{const{value:r,onValueChange:i,...a}=e,l=Rt(i);return E.jsx(sT,{scope:e.__scopeMenu,value:r,onValueChange:l,children:E.jsx(vd,{...a,ref:n})})});Py.displayName=Ry;var _y="MenuRadioItem",Ty=p.forwardRef((e,n)=>{const{value:r,...i}=e,a=lT(_y,e.__scopeMenu),l=r===a.value;return E.jsx(Iy,{scope:e.__scopeMenu,checked:l,children:E.jsx(vl,{role:"menuitemradio","aria-checked":l,...i,ref:n,"data-state":wd(l),onSelect:Se(i.onSelect,()=>a.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});Ty.displayName=_y;var yd="MenuItemIndicator",[Iy,aT]=wr(yd,{checked:!1}),Dy=p.forwardRef((e,n)=>{const{__scopeMenu:r,forceMount:i,...a}=e,l=aT(yd,r);return E.jsx(Pn,{present:i||Qs(l.checked)||l.checked===!0,children:E.jsx($e.span,{...a,ref:n,"data-state":wd(l.checked)})})});Dy.displayName=yd;var uT="MenuSeparator",Oy=p.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e;return E.jsx($e.div,{role:"separator","aria-orientation":"horizontal",...i,ref:n})});Oy.displayName=uT;var cT="MenuArrow",My=p.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e,a=ml(r);return E.jsx(O_,{...a,...i,ref:n})});My.displayName=cT;var dT="MenuSub",[WO,ky]=wr(dT),Qo="MenuSubTrigger",$y=p.forwardRef((e,n)=>{const r=Sr(Qo,e.__scopeMenu),i=fi(Qo,e.__scopeMenu),a=ky(Qo,e.__scopeMenu),l=hd(Qo,e.__scopeMenu),c=p.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:h}=l,v={__scopeMenu:e.__scopeMenu},w=p.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return p.useEffect(()=>w,[w]),p.useEffect(()=>{const m=d.current;return()=>{window.clearTimeout(m),h(null)}},[d,h]),E.jsx(pd,{asChild:!0,...v,children:E.jsx(Cy,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":Ay(r.open),...e,ref:Js(n,a.onTriggerChange),onClick:m=>{e.onClick?.(m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:Se(e.onPointerMove,li(m=>{l.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!r.open&&!c.current&&(l.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),w()},100))})),onPointerLeave:Se(e.onPointerLeave,li(m=>{w();const S=r.content?.getBoundingClientRect();if(S){const y=r.content?.dataset.side,P=y==="right",x=P?-5:5,R=S[P?"left":"right"],T=S[P?"right":"left"];l.onPointerGraceIntentChange({area:[{x:m.clientX+x,y:m.clientY},{x:R,y:S.top},{x:T,y:S.top},{x:T,y:S.bottom},{x:R,y:S.bottom}],side:y}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(m),m.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:Se(e.onKeyDown,m=>{const S=l.searchRef.current!=="";e.disabled||S&&m.key===" "||W_[i.dir].includes(m.key)&&(r.onOpenChange(!0),r.content?.focus(),m.preventDefault())})})})});$y.displayName=Qo;var Ny="MenuSubContent",by=p.forwardRef((e,n)=>{const r=yy(Ht,e.__scopeMenu),{forceMount:i=r.forceMount,...a}=e,l=Sr(Ht,e.__scopeMenu),c=fi(Ht,e.__scopeMenu),d=ky(Ny,e.__scopeMenu),h=p.useRef(null),v=Qe(n,h);return E.jsx(si.Provider,{scope:e.__scopeMenu,children:E.jsx(Pn,{present:i||l.open,children:E.jsx(si.Slot,{scope:e.__scopeMenu,children:E.jsx(md,{id:d.contentId,"aria-labelledby":d.triggerId,...a,ref:v,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:w=>{c.isUsingKeyboardRef.current&&h.current?.focus(),w.preventDefault()},onCloseAutoFocus:w=>w.preventDefault(),onFocusOutside:Se(e.onFocusOutside,w=>{w.target!==d.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:Se(e.onEscapeKeyDown,w=>{c.onClose(),w.preventDefault()}),onKeyDown:Se(e.onKeyDown,w=>{const m=w.currentTarget.contains(w.target),S=G_[c.dir].includes(w.key);m&&S&&(l.onOpenChange(!1),d.trigger?.focus(),w.preventDefault())})})})})})});by.displayName=Ny;function Ay(e){return e?"open":"closed"}function Qs(e){return e==="indeterminate"}function wd(e){return Qs(e)?"indeterminate":e?"checked":"unchecked"}function fT(e){const n=document.activeElement;for(const r of e)if(r===n||(r.focus(),document.activeElement!==n))return}function pT(e,n){return e.map((r,i)=>e[(n+i)%e.length])}function gT(e,n,r){const a=n.length>1&&Array.from(n).every(v=>v===n[0])?n[0]:n,l=r?e.indexOf(r):-1;let c=pT(e,Math.max(l,0));a.length===1&&(c=c.filter(v=>v!==r));const h=c.find(v=>v.toLowerCase().startsWith(a.toLowerCase()));return h!==r?h:void 0}function hT(e,n){const{x:r,y:i}=e;let a=!1;for(let l=0,c=n.length-1;l<n.length;c=l++){const d=n[l],h=n[c],v=d.x,w=d.y,m=h.x,S=h.y;w>i!=S>i&&r<(m-v)*(i-w)/(S-w)+v&&(a=!a)}return a}function mT(e,n){if(!n)return!1;const r={x:e.clientX,y:e.clientY};return hT(r,n)}function li(e){return n=>n.pointerType==="mouse"?e(n):void 0}var Ly=vy,Fy=pd,jy=wy,Vy=Sy,zy=vd,Hy=xy,Uy=vl,By=Ey,Wy=Py,Gy=Ty,Ky=Dy,Xy=Oy,qy=My,Yy=$y,Qy=by,Sd="ContextMenu",[vT]=Zn(Sd,[hl]),ht=hl(),[yT,Zy]=vT(Sd),Jy=e=>{const{__scopeContextMenu:n,children:r,onOpenChange:i,dir:a,modal:l=!0}=e,[c,d]=p.useState(!1),h=ht(n),v=Rt(i),w=p.useCallback(m=>{d(m),v(m)},[v]);return E.jsx(yT,{scope:n,open:c,onOpenChange:w,modal:l,children:E.jsx(Ly,{...h,dir:a,open:c,onOpenChange:w,modal:l,children:r})})};Jy.displayName=Sd;var ew="ContextMenuTrigger",tw=p.forwardRef((e,n)=>{const{__scopeContextMenu:r,disabled:i=!1,...a}=e,l=Zy(ew,r),c=ht(r),d=p.useRef({x:0,y:0}),h=p.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...d.current})}),v=p.useRef(0),w=p.useCallback(()=>window.clearTimeout(v.current),[]),m=S=>{d.current={x:S.clientX,y:S.clientY},l.onOpenChange(!0)};return p.useEffect(()=>w,[w]),p.useEffect(()=>void(i&&w()),[i,w]),E.jsxs(E.Fragment,{children:[E.jsx(Fy,{...c,virtualRef:h}),E.jsx($e.span,{"data-state":l.open?"open":"closed","data-disabled":i?"":void 0,...a,ref:n,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:i?e.onContextMenu:Se(e.onContextMenu,S=>{w(),m(S),S.preventDefault()}),onPointerDown:i?e.onPointerDown:Se(e.onPointerDown,Fs(S=>{w(),v.current=window.setTimeout(()=>m(S),700)})),onPointerMove:i?e.onPointerMove:Se(e.onPointerMove,Fs(w)),onPointerCancel:i?e.onPointerCancel:Se(e.onPointerCancel,Fs(w)),onPointerUp:i?e.onPointerUp:Se(e.onPointerUp,Fs(w))})]})});tw.displayName=ew;var wT="ContextMenuPortal",nw=e=>{const{__scopeContextMenu:n,...r}=e,i=ht(n);return E.jsx(jy,{...i,...r})};nw.displayName=wT;var rw="ContextMenuContent",ow=p.forwardRef((e,n)=>{const{__scopeContextMenu:r,...i}=e,a=Zy(rw,r),l=ht(r),c=p.useRef(!1);return E.jsx(Vy,{...l,...i,ref:n,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:d=>{e.onCloseAutoFocus?.(d),!d.defaultPrevented&&c.current&&d.preventDefault(),c.current=!1},onInteractOutside:d=>{e.onInteractOutside?.(d),!d.defaultPrevented&&!a.modal&&(c.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ow.displayName=rw;var ST="ContextMenuGroup",xT=p.forwardRef((e,n)=>{const{__scopeContextMenu:r,...i}=e,a=ht(r);return E.jsx(zy,{...a,...i,ref:n})});xT.displayName=ST;var CT="ContextMenuLabel",ET=p.forwardRef((e,n)=>{const{__scopeContextMenu:r,...i}=e,a=ht(r);return E.jsx(Hy,{...a,...i,ref:n})});ET.displayName=CT;var RT="ContextMenuItem",PT=p.forwardRef((e,n)=>{const{__scopeContextMenu:r,...i}=e,a=ht(r);return E.jsx(Uy,{...a,...i,ref:n})});PT.displayName=RT;var _T="ContextMenuCheckboxItem",TT=p.forwardRef((e,n)=>{const{__scopeContextMenu:r,...i}=e,a=ht(r);return E.jsx(By,{...a,...i,ref:n})});TT.displayName=_T;var IT="ContextMenuRadioGroup",DT=p.forwardRef((e,n)=>{const{__scopeContextMenu:r,...i}=e,a=ht(r);return E.jsx(Wy,{...a,...i,ref:n})});DT.displayName=IT;var OT="ContextMenuRadioItem",MT=p.forwardRef((e,n)=>{const{__scopeContextMenu:r,...i}=e,a=ht(r);return E.jsx(Gy,{...a,...i,ref:n})});MT.displayName=OT;var kT="ContextMenuItemIndicator",$T=p.forwardRef((e,n)=>{const{__scopeContextMenu:r,...i}=e,a=ht(r);return E.jsx(Ky,{...a,...i,ref:n})});$T.displayName=kT;var NT="ContextMenuSeparator",bT=p.forwardRef((e,n)=>{const{__scopeContextMenu:r,...i}=e,a=ht(r);return E.jsx(Xy,{...a,...i,ref:n})});bT.displayName=NT;var AT="ContextMenuArrow",LT=p.forwardRef((e,n)=>{const{__scopeContextMenu:r,...i}=e,a=ht(r);return E.jsx(qy,{...a,...i,ref:n})});LT.displayName=AT;var FT="ContextMenuSubTrigger",jT=p.forwardRef((e,n)=>{const{__scopeContextMenu:r,...i}=e,a=ht(r);return E.jsx(Yy,{...a,...i,ref:n})});jT.displayName=FT;var VT="ContextMenuSubContent",zT=p.forwardRef((e,n)=>{const{__scopeContextMenu:r,...i}=e,a=ht(r);return E.jsx(Qy,{...a,...i,ref:n,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});zT.displayName=VT;function Fs(e){return n=>n.pointerType!=="mouse"?e(n):void 0}var HT=Jy,UT=tw,BT=nw,WT=ow;const iw=p.createContext({dragDropManager:void 0});function Vt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var $h=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Nh=function(){return Math.random().toString(36).substring(7).split("").join(".")},bh={INIT:"@@redux/INIT"+Nh(),REPLACE:"@@redux/REPLACE"+Nh()};function GT(e){if(typeof e!="object"||e===null)return!1;for(var n=e;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function sw(e,n,r){var i;if(typeof n=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Vt(0));if(typeof n=="function"&&typeof r>"u"&&(r=n,n=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Vt(1));return r(sw)(e,n)}if(typeof e!="function")throw new Error(Vt(2));var a=e,l=n,c=[],d=c,h=!1;function v(){d===c&&(d=c.slice())}function w(){if(h)throw new Error(Vt(3));return l}function m(x){if(typeof x!="function")throw new Error(Vt(4));if(h)throw new Error(Vt(5));var R=!0;return v(),d.push(x),function(){if(R){if(h)throw new Error(Vt(6));R=!1,v();var _=d.indexOf(x);d.splice(_,1),c=null}}}function S(x){if(!GT(x))throw new Error(Vt(7));if(typeof x.type>"u")throw new Error(Vt(8));if(h)throw new Error(Vt(9));try{h=!0,l=a(l,x)}finally{h=!1}for(var R=c=d,T=0;T<R.length;T++){var _=R[T];_()}return x}function y(x){if(typeof x!="function")throw new Error(Vt(10));a=x,S({type:bh.REPLACE})}function P(){var x,R=m;return x={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(Vt(11));function I(){_.next&&_.next(w())}I();var N=R(I);return{unsubscribe:N}}},x[$h]=function(){return this},x}return S({type:bh.INIT}),i={dispatch:S,subscribe:m,getState:w,replaceReducer:y},i[$h]=P,i}function Te(e,n,...r){if(KT()&&n===void 0)throw new Error("invariant requires an error message argument");if(!e){let i;if(n===void 0)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let a=0;i=new Error(n.replace(/%s/g,function(){return r[a++]})),i.name="Invariant Violation"}throw i.framesToPop=1,i}}function KT(){return typeof process<"u"&&!0}function XT(e,n,r){return n.split(".").reduce((i,a)=>i&&i[a]?i[a]:r||null,e)}function qT(e,n){return e.filter(r=>r!==n)}function lw(e){return typeof e=="object"}function YT(e,n){const r=new Map,i=l=>{r.set(l,r.has(l)?r.get(l)+1:1)};e.forEach(i),n.forEach(i);const a=[];return r.forEach((l,c)=>{l===1&&a.push(c)}),a}function QT(e,n){return e.filter(r=>n.indexOf(r)>-1)}const xd="dnd-core/INIT_COORDS",yl="dnd-core/BEGIN_DRAG",Cd="dnd-core/PUBLISH_DRAG_SOURCE",wl="dnd-core/HOVER",Sl="dnd-core/DROP",xl="dnd-core/END_DRAG";function Ah(e,n){return{type:xd,payload:{sourceClientOffset:n||null,clientOffset:e||null}}}const ZT={type:xd,payload:{clientOffset:null,sourceClientOffset:null}};function JT(e){return function(r=[],i={publishSource:!0}){const{publishSource:a=!0,clientOffset:l,getSourceClientOffset:c}=i,d=e.getMonitor(),h=e.getRegistry();e.dispatch(Ah(l)),eI(r,d,h);const v=rI(r,d);if(v==null){e.dispatch(ZT);return}let w=null;if(l){if(!c)throw new Error("getSourceClientOffset must be defined");tI(c),w=c(v)}e.dispatch(Ah(l,w));const S=h.getSource(v).beginDrag(d,v);if(S==null)return;nI(S),h.pinSource(v);const y=h.getSourceType(v);return{type:yl,payload:{itemType:y,item:S,sourceId:v,clientOffset:l||null,sourceClientOffset:w||null,isSourcePublic:!!a}}}}function eI(e,n,r){Te(!n.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(i){Te(r.getSource(i),"Expected sourceIds to be registered.")})}function tI(e){Te(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function nI(e){Te(lw(e),"Item must be an object.")}function rI(e,n){let r=null;for(let i=e.length-1;i>=0;i--)if(n.canDragSource(e[i])){r=e[i];break}return r}function oI(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function iI(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){oI(e,a,r[a])})}return e}function sI(e){return function(r={}){const i=e.getMonitor(),a=e.getRegistry();lI(i),cI(i).forEach((c,d)=>{const h=aI(c,d,a,i),v={type:Sl,payload:{dropResult:iI({},r,h)}};e.dispatch(v)})}}function lI(e){Te(e.isDragging(),"Cannot call drop while not dragging."),Te(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function aI(e,n,r,i){const a=r.getTarget(e);let l=a?a.drop(i,e):void 0;return uI(l),typeof l>"u"&&(l=n===0?{}:i.getDropResult()),l}function uI(e){Te(typeof e>"u"||lw(e),"Drop result must either be an object or undefined.")}function cI(e){const n=e.getTargetIds().filter(e.canDropOnTarget,e);return n.reverse(),n}function dI(e){return function(){const r=e.getMonitor(),i=e.getRegistry();fI(r);const a=r.getSourceId();return a!=null&&(i.getSource(a,!0).endDrag(r,a),i.unpinSource()),{type:xl}}}function fI(e){Te(e.isDragging(),"Cannot call endDrag while not dragging.")}function _c(e,n){return n===null?e===null:Array.isArray(e)?e.some(r=>r===n):e===n}function pI(e){return function(r,{clientOffset:i}={}){gI(r);const a=r.slice(0),l=e.getMonitor(),c=e.getRegistry(),d=l.getItemType();return mI(a,c,d),hI(a,l,c),vI(a,l,c),{type:wl,payload:{targetIds:a,clientOffset:i||null}}}}function gI(e){Te(Array.isArray(e),"Expected targetIds to be an array.")}function hI(e,n,r){Te(n.isDragging(),"Cannot call hover while not dragging."),Te(!n.didDrop(),"Cannot call hover after drop.");for(let i=0;i<e.length;i++){const a=e[i];Te(e.lastIndexOf(a)===i,"Expected targetIds to be unique in the passed array.");const l=r.getTarget(a);Te(l,"Expected targetIds to be registered.")}}function mI(e,n,r){for(let i=e.length-1;i>=0;i--){const a=e[i],l=n.getTargetType(a);_c(l,r)||e.splice(i,1)}}function vI(e,n,r){e.forEach(function(i){r.getTarget(i).hover(n,i)})}function yI(e){return function(){if(e.getMonitor().isDragging())return{type:Cd}}}function wI(e){return{beginDrag:JT(e),publishDragSource:yI(e),hover:pI(e),drop:sI(e),endDrag:dI(e)}}class SI{receiveBackend(n){this.backend=n}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const n=this,{dispatch:r}=this.store;function i(l){return(...c)=>{const d=l.apply(n,c);typeof d<"u"&&r(d)}}const a=wI(this);return Object.keys(a).reduce((l,c)=>{const d=a[c];return l[c]=i(d),l},{})}dispatch(n){this.store.dispatch(n)}constructor(n,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const i=this.store.getState().refCount>0;this.backend&&(i&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!i&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=n,this.monitor=r,n.subscribe(this.handleRefCountChange)}}function xI(e,n){return{x:e.x+n.x,y:e.y+n.y}}function aw(e,n){return{x:e.x-n.x,y:e.y-n.y}}function CI(e){const{clientOffset:n,initialClientOffset:r,initialSourceClientOffset:i}=e;return!n||!r||!i?null:aw(xI(n,i),r)}function EI(e){const{clientOffset:n,initialClientOffset:r}=e;return!n||!r?null:aw(n,r)}const ti=[],Ed=[];ti.__IS_NONE__=!0;Ed.__IS_ALL__=!0;function RI(e,n){return e===ti?!1:e===Ed||typeof n>"u"?!0:QT(n,e).length>0}class PI{subscribeToStateChange(n,r={}){const{handlerIds:i}=r;Te(typeof n=="function","listener must be a function."),Te(typeof i>"u"||Array.isArray(i),"handlerIds, when specified, must be an array of strings.");let a=this.store.getState().stateId;const l=()=>{const c=this.store.getState(),d=c.stateId;try{d===a||d===a+1&&!RI(c.dirtyHandlerIds,i)||n()}finally{a=d}};return this.store.subscribe(l)}subscribeToOffsetChange(n){Te(typeof n=="function","listener must be a function.");let r=this.store.getState().dragOffset;const i=()=>{const a=this.store.getState().dragOffset;a!==r&&(r=a,n())};return this.store.subscribe(i)}canDragSource(n){if(!n)return!1;const r=this.registry.getSource(n);return Te(r,`Expected to find a valid source. sourceId=${n}`),this.isDragging()?!1:r.canDrag(this,n)}canDropOnTarget(n){if(!n)return!1;const r=this.registry.getTarget(n);if(Te(r,`Expected to find a valid target. targetId=${n}`),!this.isDragging()||this.didDrop())return!1;const i=this.registry.getTargetType(n),a=this.getItemType();return _c(i,a)&&r.canDrop(this,n)}isDragging(){return!!this.getItemType()}isDraggingSource(n){if(!n)return!1;const r=this.registry.getSource(n,!0);if(Te(r,`Expected to find a valid source. sourceId=${n}`),!this.isDragging()||!this.isSourcePublic())return!1;const i=this.registry.getSourceType(n),a=this.getItemType();return i!==a?!1:r.isDragging(this,n)}isOverTarget(n,r={shallow:!1}){if(!n)return!1;const{shallow:i}=r;if(!this.isDragging())return!1;const a=this.registry.getTargetType(n),l=this.getItemType();if(l&&!_c(a,l))return!1;const c=this.getTargetIds();if(!c.length)return!1;const d=c.indexOf(n);return i?d===c.length-1:d>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return CI(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return EI(this.store.getState().dragOffset)}constructor(n,r){this.store=n,this.registry=r}}const Lh=typeof global<"u"?global:self,uw=Lh.MutationObserver||Lh.WebKitMutationObserver;function cw(e){return function(){const r=setTimeout(a,0),i=setInterval(a,50);function a(){clearTimeout(r),clearInterval(i),e()}}}function _I(e){let n=1;const r=new uw(e),i=document.createTextNode("");return r.observe(i,{characterData:!0}),function(){n=-n,i.data=n}}const TI=typeof uw=="function"?_I:cw;class II{enqueueTask(n){const{queue:r,requestFlush:i}=this;r.length||(i(),this.flushing=!0),r[r.length]=n}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:n}=this;for(;this.index<n.length;){const r=this.index;if(this.index++,n[r].call(),this.index>this.capacity){for(let i=0,a=n.length-this.index;i<a;i++)n[i]=n[i+this.index];n.length-=this.index,this.index=0}}n.length=0,this.index=0,this.flushing=!1},this.registerPendingError=n=>{this.pendingErrors.push(n),this.requestErrorThrow()},this.requestFlush=TI(this.flush),this.requestErrorThrow=cw(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class DI{call(){try{this.task&&this.task()}catch(n){this.onError(n)}finally{this.task=null,this.release(this)}}constructor(n,r){this.onError=n,this.release=r,this.task=null}}class OI{create(n){const r=this.freeTasks,i=r.length?r.pop():new DI(this.onError,a=>r[r.length]=a);return i.task=n,i}constructor(n){this.onError=n,this.freeTasks=[]}}const dw=new II,MI=new OI(dw.registerPendingError);function kI(e){dw.enqueueTask(MI.create(e))}const Rd="dnd-core/ADD_SOURCE",Pd="dnd-core/ADD_TARGET",_d="dnd-core/REMOVE_SOURCE",Cl="dnd-core/REMOVE_TARGET";function $I(e){return{type:Rd,payload:{sourceId:e}}}function NI(e){return{type:Pd,payload:{targetId:e}}}function bI(e){return{type:_d,payload:{sourceId:e}}}function AI(e){return{type:Cl,payload:{targetId:e}}}function LI(e){Te(typeof e.canDrag=="function","Expected canDrag to be a function."),Te(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Te(typeof e.endDrag=="function","Expected endDrag to be a function.")}function FI(e){Te(typeof e.canDrop=="function","Expected canDrop to be a function."),Te(typeof e.hover=="function","Expected hover to be a function."),Te(typeof e.drop=="function","Expected beginDrag to be a function.")}function Tc(e,n){if(n&&Array.isArray(e)){e.forEach(r=>Tc(r,!1));return}Te(typeof e=="string"||typeof e=="symbol",n?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var zt;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(zt||(zt={}));let jI=0;function VI(){return jI++}function zI(e){const n=VI().toString();switch(e){case zt.SOURCE:return`S${n}`;case zt.TARGET:return`T${n}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Fh(e){switch(e[0]){case"S":return zt.SOURCE;case"T":return zt.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function jh(e,n){const r=e.entries();let i=!1;do{const{done:a,value:[,l]}=r.next();if(l===n)return!0;i=!!a}while(!i);return!1}class HI{addSource(n,r){Tc(n),LI(r);const i=this.addHandler(zt.SOURCE,n,r);return this.store.dispatch($I(i)),i}addTarget(n,r){Tc(n,!0),FI(r);const i=this.addHandler(zt.TARGET,n,r);return this.store.dispatch(NI(i)),i}containsHandler(n){return jh(this.dragSources,n)||jh(this.dropTargets,n)}getSource(n,r=!1){return Te(this.isSourceId(n),"Expected a valid source ID."),r&&n===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(n)}getTarget(n){return Te(this.isTargetId(n),"Expected a valid target ID."),this.dropTargets.get(n)}getSourceType(n){return Te(this.isSourceId(n),"Expected a valid source ID."),this.types.get(n)}getTargetType(n){return Te(this.isTargetId(n),"Expected a valid target ID."),this.types.get(n)}isSourceId(n){return Fh(n)===zt.SOURCE}isTargetId(n){return Fh(n)===zt.TARGET}removeSource(n){Te(this.getSource(n),"Expected an existing source."),this.store.dispatch(bI(n)),kI(()=>{this.dragSources.delete(n),this.types.delete(n)})}removeTarget(n){Te(this.getTarget(n),"Expected an existing target."),this.store.dispatch(AI(n)),this.dropTargets.delete(n),this.types.delete(n)}pinSource(n){const r=this.getSource(n);Te(r,"Expected an existing source."),this.pinnedSourceId=n,this.pinnedSource=r}unpinSource(){Te(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(n,r,i){const a=zI(n);return this.types.set(a,r),n===zt.SOURCE?this.dragSources.set(a,i):n===zt.TARGET&&this.dropTargets.set(a,i),a}constructor(n){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=n}}const UI=(e,n)=>e===n;function BI(e,n){return!e&&!n?!0:!e||!n?!1:e.x===n.x&&e.y===n.y}function WI(e,n,r=UI){if(e.length!==n.length)return!1;for(let i=0;i<e.length;++i)if(!r(e[i],n[i]))return!1;return!0}function GI(e=ti,n){switch(n.type){case wl:break;case Rd:case Pd:case Cl:case _d:return ti;case yl:case Cd:case xl:case Sl:default:return Ed}const{targetIds:r=[],prevTargetIds:i=[]}=n.payload,a=YT(r,i);if(!(a.length>0||!WI(r,i)))return ti;const c=i[i.length-1],d=r[r.length-1];return c!==d&&(c&&a.push(c),d&&a.push(d)),a}function KI(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function XI(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){KI(e,a,r[a])})}return e}const Vh={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function qI(e=Vh,n){const{payload:r}=n;switch(n.type){case xd:case yl:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case wl:return BI(e.clientOffset,r.clientOffset)?e:XI({},e,{clientOffset:r.clientOffset});case xl:case Sl:return Vh;default:return e}}function YI(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Yr(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){YI(e,a,r[a])})}return e}const QI={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function ZI(e=QI,n){const{payload:r}=n;switch(n.type){case yl:return Yr({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case Cd:return Yr({},e,{isSourcePublic:!0});case wl:return Yr({},e,{targetIds:r.targetIds});case Cl:return e.targetIds.indexOf(r.targetId)===-1?e:Yr({},e,{targetIds:qT(e.targetIds,r.targetId)});case Sl:return Yr({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case xl:return Yr({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function JI(e=0,n){switch(n.type){case Rd:case Pd:return e+1;case _d:case Cl:return e-1;default:return e}}function eD(e=0){return e+1}function tD(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function nD(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){tD(e,a,r[a])})}return e}function rD(e={},n){return{dirtyHandlerIds:GI(e.dirtyHandlerIds,{type:n.type,payload:nD({},n.payload,{prevTargetIds:XT(e,"dragOperation.targetIds",[])})}),dragOffset:qI(e.dragOffset,n),refCount:JI(e.refCount,n),dragOperation:ZI(e.dragOperation,n),stateId:eD(e.stateId)}}function oD(e,n=void 0,r={},i=!1){const a=iD(i),l=new PI(a,new HI(a)),c=new SI(a,l),d=e(c,n,r);return c.receiveBackend(d),c}function iD(e){const n=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return sw(rD,e&&n&&n({name:"dnd-core",instanceId:"dnd-core"}))}function sD(e,n){if(e==null)return{};var r=lD(e,n),i,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)i=l[a],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function lD(e,n){if(e==null)return{};var r={},i=Object.keys(e),a,l;for(l=0;l<i.length;l++)a=i[l],!(n.indexOf(a)>=0)&&(r[a]=e[a]);return r}let zh=0;const zs=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var aD=p.memo(function(n){var{children:r}=n,i=sD(n,["children"]);const[a,l]=uD(i);return p.useEffect(()=>{if(l){const c=fw();return++zh,()=>{--zh===0&&(c[zs]=null)}}},[]),E.jsx(iw.Provider,{value:a,children:r})});function uD(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const n=cD(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[n,r]}function cD(e,n=fw(),r,i){const a=n;return a[zs]||(a[zs]={dragDropManager:oD(e,n,r,i)}),a[zs]}function fw(){return typeof global<"u"?global:window}var Xu,Hh;function dD(){return Hh||(Hh=1,Xu=function e(n,r){if(n===r)return!0;if(n&&r&&typeof n=="object"&&typeof r=="object"){if(n.constructor!==r.constructor)return!1;var i,a,l;if(Array.isArray(n)){if(i=n.length,i!=r.length)return!1;for(a=i;a--!==0;)if(!e(n[a],r[a]))return!1;return!0}if(n.constructor===RegExp)return n.source===r.source&&n.flags===r.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===r.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===r.toString();if(l=Object.keys(n),i=l.length,i!==Object.keys(r).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,l[a]))return!1;for(a=i;a--!==0;){var c=l[a];if(!e(n[c],r[c]))return!1}return!0}return n!==n&&r!==r}),Xu}var fD=dD();const pD=ro(fD),hr=typeof window<"u"?p.useLayoutEffect:p.useEffect;function gD(e,n,r){const[i,a]=p.useState(()=>n(e)),l=p.useCallback(()=>{const c=n(e);pD(i,c)||(a(c),r&&r())},[i,e,r]);return hr(l),[i,l]}function hD(e,n,r){const[i,a]=gD(e,n,r);return hr(function(){const c=e.getHandlerId();if(c!=null)return e.subscribeToStateChange(a,{handlerIds:[c]})},[e,a]),i}function pw(e,n,r){return hD(n,e||(()=>({})),()=>r.reconnect())}function gw(e,n){const r=[];return typeof e!="function"&&r.push(e),p.useMemo(()=>typeof e=="function"?e():e,r)}function mD(e){return p.useMemo(()=>e.hooks.dragSource(),[e])}function vD(e){return p.useMemo(()=>e.hooks.dragPreview(),[e])}let qu=!1,Yu=!1;class yD{receiveHandlerId(n){this.sourceId=n}getHandlerId(){return this.sourceId}canDrag(){Te(!qu,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return qu=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{qu=!1}}isDragging(){if(!this.sourceId)return!1;Te(!Yu,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Yu=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Yu=!1}}subscribeToStateChange(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}isDraggingSource(n){return this.internalMonitor.isDraggingSource(n)}isOverTarget(n,r){return this.internalMonitor.isOverTarget(n,r)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(n){return this.internalMonitor.subscribeToOffsetChange(n)}canDragSource(n){return this.internalMonitor.canDragSource(n)}canDropOnTarget(n){return this.internalMonitor.canDropOnTarget(n)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(n){this.sourceId=null,this.internalMonitor=n.getMonitor()}}let Qu=!1;class wD{receiveHandlerId(n){this.targetId=n}getHandlerId(){return this.targetId}subscribeToStateChange(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}canDrop(){if(!this.targetId)return!1;Te(!Qu,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Qu=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Qu=!1}}isOver(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(n){this.targetId=null,this.internalMonitor=n.getMonitor()}}function SD(e,n,r){const i=r.getRegistry(),a=i.addTarget(e,n);return[a,()=>i.removeTarget(a)]}function xD(e,n,r){const i=r.getRegistry(),a=i.addSource(e,n);return[a,()=>i.removeSource(a)]}function Ic(e,n,r,i){let a;if(a!==void 0)return!!a;if(e===n)return!0;if(typeof e!="object"||!e||typeof n!="object"||!n)return!1;const l=Object.keys(e),c=Object.keys(n);if(l.length!==c.length)return!1;const d=Object.prototype.hasOwnProperty.bind(n);for(let h=0;h<l.length;h++){const v=l[h];if(!d(v))return!1;const w=e[v],m=n[v];if(a=void 0,a===!1||a===void 0&&w!==m)return!1}return!0}function Dc(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function CD(e){if(typeof e.type=="string")return;const n=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${n} into a <div>, or turn it into a drag source or a drop target itself.`)}function ED(e){return(n=null,r=null)=>{if(!p.isValidElement(n)){const l=n;return e(l,r),l}const i=n;return CD(i),RD(i,r?l=>e(l,r):e)}}function hw(e){const n={};return Object.keys(e).forEach(r=>{const i=e[r];if(r.endsWith("Ref"))n[r]=e[r];else{const a=ED(i);n[r]=()=>a}}),n}function Uh(e,n){typeof e=="function"?e(n):e.current=n}function RD(e,n){const r=e.ref;return Te(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?p.cloneElement(e,{ref:i=>{Uh(r,i),Uh(n,i)}}):p.cloneElement(e,{ref:n})}class PD{receiveHandlerId(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(n){this.dragSourceOptionsInternal=n}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(n){this.dragPreviewOptionsInternal=n}reconnect(){const n=this.reconnectDragSource();this.reconnectDragPreview(n)}reconnectDragSource(){const n=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?n?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions)),r):(this.lastConnectedDragSource=n,r):r}reconnectDragPreview(n=!1){const r=this.dragPreview,i=n||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(i&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!Ic(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Ic(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(n){this.hooks=hw({dragSource:(r,i)=>{this.clearDragSource(),this.dragSourceOptions=i||null,Dc(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,i)=>{this.clearDragPreview(),this.dragPreviewOptions=i||null,Dc(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=n}}class _D{get connectTarget(){return this.dropTarget}reconnect(){const n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}receiveHandlerId(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(n){this.dropTargetOptionsInternal=n}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!Ic(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(n){this.hooks=hw({dropTarget:(r,i)=>{this.clearDropTarget(),this.dropTargetOptions=i,Dc(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=n}}function lo(){const{dragDropManager:e}=p.useContext(iw);return Te(e!=null,"Expected drag drop context"),e}function TD(e,n){const r=lo(),i=p.useMemo(()=>new PD(r.getBackend()),[r]);return hr(()=>(i.dragSourceOptions=e||null,i.reconnect(),()=>i.disconnectDragSource()),[i,e]),hr(()=>(i.dragPreviewOptions=n||null,i.reconnect(),()=>i.disconnectDragPreview()),[i,n]),i}function ID(){const e=lo();return p.useMemo(()=>new yD(e),[e])}class DD{beginDrag(){const n=this.spec,r=this.monitor;let i=null;return typeof n.item=="object"?i=n.item:typeof n.item=="function"?i=n.item(r):i={},i??null}canDrag(){const n=this.spec,r=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(r):!0}isDragging(n,r){const i=this.spec,a=this.monitor,{isDragging:l}=i;return l?l(a):r===n.getSourceId()}endDrag(){const n=this.spec,r=this.monitor,i=this.connector,{end:a}=n;a&&a(r.getItem(),r),i.reconnect()}constructor(n,r,i){this.spec=n,this.monitor=r,this.connector=i}}function OD(e,n,r){const i=p.useMemo(()=>new DD(e,n,r),[n,r]);return p.useEffect(()=>{i.spec=e},[e]),i}function MD(e){return p.useMemo(()=>{const n=e.type;return Te(n!=null,"spec.type must be defined"),n},[e])}function kD(e,n,r){const i=lo(),a=OD(e,n,r),l=MD(e);hr(function(){if(l!=null){const[d,h]=xD(l,a,i);return n.receiveHandlerId(d),r.receiveHandlerId(d),h}},[i,n,r,a,l])}function $D(e,n){const r=gw(e);Te(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const i=ID(),a=TD(r.options,r.previewOptions);return kD(r,i,a),[pw(r.collect,i,a),mD(a),vD(a)]}function ND(e){return p.useMemo(()=>e.hooks.dropTarget(),[e])}function bD(e){const n=lo(),r=p.useMemo(()=>new _D(n.getBackend()),[n]);return hr(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}function AD(){const e=lo();return p.useMemo(()=>new wD(e),[e])}function LD(e){const{accept:n}=e;return p.useMemo(()=>(Te(e.accept!=null,"accept must be defined"),Array.isArray(n)?n:[n]),[n])}class FD{canDrop(){const n=this.spec,r=this.monitor;return n.canDrop?n.canDrop(r.getItem(),r):!0}hover(){const n=this.spec,r=this.monitor;n.hover&&n.hover(r.getItem(),r)}drop(){const n=this.spec,r=this.monitor;if(n.drop)return n.drop(r.getItem(),r)}constructor(n,r){this.spec=n,this.monitor=r}}function jD(e,n){const r=p.useMemo(()=>new FD(e,n),[n]);return p.useEffect(()=>{r.spec=e},[e]),r}function VD(e,n,r){const i=lo(),a=jD(e,n),l=LD(e);hr(function(){const[d,h]=SD(l,a,i);return n.receiveHandlerId(d),r.receiveHandlerId(d),h},[i,n,a,r,l.map(c=>c.toString()).join("|")])}function zD(e,n){const r=gw(e),i=AD(),a=bD(r.options);return VD(r,i,a),[pw(r.collect,i,a),ND(a)]}const mw=new RegExp("^([0-9]+)(\\s)([kKmMbBtT])$"),Zs=new RegExp("^\\d{4}$"),HD=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}|\\d{4}-\\d{2}-\\d{2}$");function UD({column:e,table:n,numberOfColumns:r}){function i(m){if(!m)return null;const S=new Date(m),y=S.toISOString().split("T")[0],P=S.toTimeString().split(" ")[0];return`${y} ${P}`}const a=n.getPreFilteredRowModel().flatRows.map(m=>m.original[e.id]),l=a.every(m=>typeof m=="string"||m===null),c=a.every(m=>typeof m=="number"||mw.test(m)||m===null||m===""),d=a.some(m=>typeof m=="string"&&m.includes(" ")),h=e.getFilterValue();let v="date";const w=a.every(m=>{const S=m?.toString().replace(/[^0-9]/g,"").trim();return HD.test(m?.toString())&&(v="datetime-local"),Zs.test(m?.toString())&&(v="number"),S?.length>=4&&(Us(e.id)||e.id.toLowerCase()==="index"&&!d)});return w&&v==="number"?E.jsxs("div",{className:"flex gap-2 h-6",children:[E.jsx("input",{type:v,value:h?.[0]??"",onChange:m=>{e.setFilterValue(S=>[`${m.target.value}`,`${S?.[1]}`])},min:a.reduce((m,S)=>Math.min(m,parseInt(S,10)),1/0),max:a.reduce((m,S)=>Math.max(m,parseInt(S,10)),-1/0),placeholder:"Start year",className:"_input",title:"Start year"}),E.jsx("input",{type:v,value:h?.[1]??"",onChange:m=>{e.setFilterValue(S=>[`${S?.[0]}`,`${m.target.value}`])},min:a.reduce((m,S)=>Math.min(m,parseInt(S,10)),1/0),max:a.reduce((m,S)=>Math.max(m,parseInt(S,10)),-1/0),placeholder:"End year",className:"_input",title:"End year"})]}):w&&v!=="number"?E.jsxs("div",{className:"flex gap-2 h-6",children:[E.jsx("input",{type:v,value:i(h?.[0])??"",onChange:m=>{const S=new Date(m.target.value).getTime();e.setFilterValue(y=>[S,y?.[1]])},placeholder:"Start date",className:"_input",title:"Start date"}),E.jsx("input",{type:v,value:i(h?.[1])??"",onChange:m=>{const S=new Date(m.target.value).getTime();e.setFilterValue(y=>[y?.[0],S])},placeholder:"End date",className:"_input",title:"End date"})]}):c?E.jsxs("div",{className:"flex gap-0.5 h-6",children:[E.jsx("input",{type:"number",value:h?.[0]??"",onChange:m=>e.setFilterValue(S=>[m.target.value,S?.[1]]),placeholder:"Min",className:"_input p-0.5",title:"Min"}),E.jsx("input",{type:"number",value:h?.[1]??"",onChange:m=>e.setFilterValue(S=>[S?.[0],m.target.value]),placeholder:"Max",className:"_input p-0.5",title:"Max"})]}):l?E.jsx("div",{className:"h-6",children:E.jsx("input",{type:"text",value:h??"",onChange:m=>e.setFilterValue(m.target.value),placeholder:"Search...",className:"_input",title:"Search"})}):E.jsx("div",{className:"h-6"})}const BD=(e,n,r)=>(r.splice(r.indexOf(n),0,r.splice(r.indexOf(e),1)[0]),[...r]),WD=({header:e,table:n,advanced:r,idx:i,lockFirstColumn:a,setLockFirstColumn:l})=>{const{getState:c,setColumnOrder:d}=n,{columnOrder:h}=c(),{column:v}=e,[,w]=zD({accept:"column",drop:x=>{const R=BD(x.id,v.id,h);d(R)}}),[{isDragging:m},S,y]=$D({collect:x=>({isDragging:x.isDragging()}),item:()=>v,type:"column"}),P=()=>E.jsx("div",{ref:y,className:"flex gap-1 flex-col",children:e.isPlaceholder?null:E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"font-bold uppercase text-grey-700 dark:text-white tracking-widest flex gap-2 whitespace-nowrap justify-between",children:[E.jsxs("div",{onClick:v.getToggleSortingHandler(),className:gt("flex gap-1",{"cursor-pointer select-none":v.getCanSort()}),children:[uc(v.columnDef.header,e.getContext()),v.getCanSort()&&E.jsxs("div",{className:"flex flex-col gap-0.5 items-center justify-center",children:[E.jsx("button",{className:gt({"text-[#669DCB]":v.getIsSorted()==="asc","text-grey-600":v.getIsSorted()!=="asc"}),children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"6",height:"4",fill:"none",viewBox:"0 0 11 5",children:E.jsx("path",{fill:"currentColor",d:"M10.333 5l-5-5-5 5"})})}),E.jsx("button",{className:gt({"text-[#669DCB]":e.column.getIsSorted()==="desc","text-grey-600":e.column.getIsSorted()!=="desc"}),children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"6",height:"4",fill:"none",viewBox:"0 0 11 5",children:E.jsx("path",{fill:"currentColor",d:"M.333 0l5 5 5-5"})})})]})]}),r&&v.id!=="select"&&E.jsx("button",{ref:S,className:"text-grey-600 hover:text-grey-800 dark:hover:text-white",children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"11",fill:"none",viewBox:"0 0 17 16",children:E.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M3.667 6l-2 2 2 2M6.333 3.333l2-2 2 2M10.333 12.667l-2 2-2-2M13 6l2 2-2 2M1.667 8H15M8.333 1.333v13.334"})})})]}),r&&v.getCanFilter()?E.jsx("div",{children:E.jsx(UD,{column:v,table:n,numberOfColumns:h?.length??0})}):null]})});return E.jsxs("th",{className:gt("h-[70px] p-4 sticky",{"left-0 z-50 bg-white dark:bg-grey-900":i===0&&a}),colSpan:e.colSpan,style:{width:e.getSize()+10,opacity:m?.5:1},ref:w,children:[i===0?E.jsxs(HT,{children:[E.jsx(UT,{asChild:!0,children:P()}),E.jsx(BT,{children:E.jsx(WT,{className:"bg-white text-black dark:text-white dark:bg-grey-900 border border-grey-200 dark:border-grey-800 rounded-md shadow-lg p-2 z-50 text-xs",children:E.jsx("div",{className:"flex flex-col gap-2",children:E.jsxs("button",{onClick:()=>{l(!a)},className:"hover:bg-grey-300 dark:hover:bg-grey-800 rounded-md p-2",children:[a?"Unlock":"Lock"," first column"]})})})})]}):P(),E.jsx("button",{className:"resizer bg-grey-300/20 dark:hover:bg-white absolute top-0 right-0 w-0.5 h-full",onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler()})]})};function GD({open:e,close:n}){const r=window.download_path||"~/OpenBBUserData/exports";return E.jsxs(Im,{open:e,onOpenChange:n,children:[E.jsxs("div",{id:"loading",className:"saving",children:[E.jsx("div",{id:"loading_text",className:"loading_text"}),E.jsx("div",{id:"loader",className:"loader"})]}),E.jsx(Dm,{onClick:n,className:"_modal-overlay"}),E.jsxs(Om,{className:"_modal",children:[E.jsx(rc,{children:E.jsx(Ws,{})}),E.jsx(rc,{className:"_modal-close",onClick:n,style:{float:"right",marginTop:20},children:E.jsx(Ws,{className:"w-6 h-6"})}),E.jsx(Mm,{className:"_modal-title",children:"Success"}),E.jsxs("div",{id:"popup_title",className:"popup_content",style:{padding:"0px 2px 2px 5px",marginTop:5},children:[E.jsx("div",{style:{display:"flex",flexDirection:"column",gap:0,fontSize:14},children:E.jsx("div",{children:E.jsxs("label",{htmlFor:"title_text",children:[E.jsx("b",{children:window.title})," has been downloaded to",E.jsx("br",{}),E.jsx("br",{}),E.jsx("a",{style:{color:"#FFDD00",marginTop:15},href:`${r}`,onClick:i=>{i.preventDefault(),window.pywry.open_file(r)},children:r})]})})}),E.jsx("div",{style:{float:"right",marginTop:20},children:E.jsx("button",{className:"_btn",style:{padding:"8px 16px",width:"100%"},onClick:n,children:"Close"})})]})]})]})}function KD({columns:e,data:n,type:r,setType:i,downloadFinished:a}){const l=()=>{switch(r){case"csv":NE("csv",e,n,a);break;case"png":bE("table",a);break}};return E.jsxs("div",{className:"flex gap-2 items-center",children:[E.jsx(Qr,{labelType:"row",value:r,onChange:c=>{i(c)},label:"Type",placeholder:"Select type",groups:[{label:"Type",items:Mc.map(c=>({label:c,value:c}))}]}),E.jsx("button",{onClick:l,className:"_btn",children:"Export"})]})}var El="DropdownMenu",[XD]=Zn(El,[hl]),mt=hl(),[qD,vw]=XD(El),yw=e=>{const{__scopeDropdownMenu:n,children:r,dir:i,open:a,defaultOpen:l,onOpenChange:c,modal:d=!0}=e,h=mt(n),v=p.useRef(null),[w,m]=el({prop:a,defaultProp:l??!1,onChange:c,caller:El});return E.jsx(qD,{scope:n,triggerId:Zr(),triggerRef:v,contentId:Zr(),open:w,onOpenChange:m,onOpenToggle:p.useCallback(()=>m(S=>!S),[m]),modal:d,children:E.jsx(Ly,{...h,open:w,onOpenChange:m,dir:i,modal:d,children:r})})};yw.displayName=El;var ww="DropdownMenuTrigger",Sw=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...a}=e,l=vw(ww,r),c=mt(r);return E.jsx(Fy,{asChild:!0,...c,children:E.jsx($e.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...a,ref:Js(n,l.triggerRef),onPointerDown:Se(e.onPointerDown,d=>{!i&&d.button===0&&d.ctrlKey===!1&&(l.onOpenToggle(),l.open||d.preventDefault())}),onKeyDown:Se(e.onKeyDown,d=>{i||(["Enter"," "].includes(d.key)&&l.onOpenToggle(),d.key==="ArrowDown"&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(d.key)&&d.preventDefault())})})})});Sw.displayName=ww;var YD="DropdownMenuPortal",xw=e=>{const{__scopeDropdownMenu:n,...r}=e,i=mt(n);return E.jsx(jy,{...i,...r})};xw.displayName=YD;var Cw="DropdownMenuContent",Ew=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,a=vw(Cw,r),l=mt(r),c=p.useRef(!1);return E.jsx(Vy,{id:a.contentId,"aria-labelledby":a.triggerId,...l,...i,ref:n,onCloseAutoFocus:Se(e.onCloseAutoFocus,d=>{c.current||a.triggerRef.current?.focus(),c.current=!1,d.preventDefault()}),onInteractOutside:Se(e.onInteractOutside,d=>{const h=d.detail.originalEvent,v=h.button===0&&h.ctrlKey===!0,w=h.button===2||v;(!a.modal||w)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ew.displayName=Cw;var QD="DropdownMenuGroup",Rw=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,a=mt(r);return E.jsx(zy,{...a,...i,ref:n})});Rw.displayName=QD;var ZD="DropdownMenuLabel",Pw=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,a=mt(r);return E.jsx(Hy,{...a,...i,ref:n})});Pw.displayName=ZD;var JD="DropdownMenuItem",_w=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,a=mt(r);return E.jsx(Uy,{...a,...i,ref:n})});_w.displayName=JD;var eO="DropdownMenuCheckboxItem",tO=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,a=mt(r);return E.jsx(By,{...a,...i,ref:n})});tO.displayName=eO;var nO="DropdownMenuRadioGroup",rO=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,a=mt(r);return E.jsx(Wy,{...a,...i,ref:n})});rO.displayName=nO;var oO="DropdownMenuRadioItem",iO=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,a=mt(r);return E.jsx(Gy,{...a,...i,ref:n})});iO.displayName=oO;var sO="DropdownMenuItemIndicator",lO=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,a=mt(r);return E.jsx(Ky,{...a,...i,ref:n})});lO.displayName=sO;var aO="DropdownMenuSeparator",uO=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,a=mt(r);return E.jsx(Xy,{...a,...i,ref:n})});uO.displayName=aO;var cO="DropdownMenuArrow",dO=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,a=mt(r);return E.jsx(qy,{...a,...i,ref:n})});dO.displayName=cO;var fO="DropdownMenuSubTrigger",pO=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,a=mt(r);return E.jsx(Yy,{...a,...i,ref:n})});pO.displayName=fO;var gO="DropdownMenuSubContent",hO=p.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,a=mt(r);return E.jsx(Qy,{...a,...i,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});hO.displayName=gO;var mO=yw,Bh=Sw,vO=xw,yO=Ew,wO=Rw,SO=Pw,Zu=_w;function xO(e,n){p.useEffect(()=>{const r=i=>{!e.current||e.current.contains(i.target)||n(i)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,n])}function Wh({label:e,table:n,onlyIconTrigger:r=!1}){const[i,a]=p.useState(!1),l=p.useRef(null);xO(l,()=>a(!1)),p.useEffect(()=>{const d=h=>{h.key==="Escape"&&a(!1)};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[]);function c(){n.resetColumnFilters(),a(!1)}return E.jsxs(mO,{open:i,children:[r?E.jsx(Bh,{title:"Filter columns",onClick:()=>a(!i),children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-7 h-7",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 01-.659 1.591l-5.432 5.432a2.25 2.25 0 00-.659 1.591v2.927a2.25 2.25 0 01-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 00-.659-1.591L3.659 7.409A2.25 2.25 0 013 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0112 3z"})})}):E.jsxs(wO,{className:"flex flex-row items-center gap-2",children:[E.jsx(SO,{className:"whitespace-nowrap",children:e}),E.jsxs(Bh,{onClick:()=>a(!i),className:"bg-white text-black dark:bg-grey-900 dark:text-white whitespace-nowrap h-[36px] border-[1.5px] border-grey-700 rounded p-3 inline-flex items-center justify-center leading-none gap-[5px] shadow-[0_2px_10px] shadow-black/10 focus:shadow-[0_0_0_2px] focus:shadow-black data-[placeholder]:text-white outline-none","aria-label":e,children:[E.jsx("span",{children:"Filter columns"}),E.jsx(Sc,{className:gt({"transform rotate-180 duration-200 transition":i})})]})]}),E.jsx(vO,{children:E.jsxs(yO,{sideOffset:10,ref:l,className:"z-50 bg-white/80 dark:bg-grey-900/80 backdrop-filter backdrop-blur flex flex-col gap-4 overflow-auto border-[1.5px] border-grey-700 rounded p-3 max-h-[500px]  text-black dark:text-white",children:[E.jsx(Zu,{children:E.jsx("button",{className:"_btn w-full",onClick:c,children:"Clear Filters"})}),E.jsx(Zu,{children:E.jsxs("label",{className:"flex items-center gap-2",children:[E.jsx("input",{type:"checkbox",checked:n.getIsAllColumnsVisible(),onChange:n.getToggleAllColumnsVisibilityHandler()}),"Toggle All"]})}),n.getAllLeafColumns().filter(d=>d.id!=="select").map(d=>E.jsx(Zu,{children:E.jsxs("label",{className:"flex items-center gap-2",children:[E.jsx("input",{type:"checkbox",checked:d.getIsVisible(),onChange:d.getToggleVisibilityHandler()}),d.id]})},d.id))]})})]})}function Tw(e){return typeof e!="number"?typeof e=="string"&&e.includes("All")?e:Oc:e<1?Oc:e}function CO({table:e,currentPage:n,setCurrentPage:r}){const i=e.getFilteredRowModel().rows.length||0;return E.jsxs("div",{className:"hidden md:flex items-center gap-3",children:[E.jsx(Qr,{value:n,onChange:a=>{const l=Tw(a);r(l),l.toString().includes("All")?e.setPageSize(i):e.setPageSize(l)},labelType:"row",label:"Rows per page",placeholder:"Select rows per page",groups:[{label:"Rows per page",items:[10,20,30,40,50,`All (${i})`].map(a=>({label:`${a}`,value:a}))}]}),E.jsxs("span",{className:"flex items-center gap-1",children:[E.jsx("strong",{children:e.getState().pagination.pageIndex+1}),"of",E.jsx("strong",{children:e.getPageCount()})]}),E.jsxs("div",{className:"hidden mdl:block",children:[E.jsx("button",{className:gt("px-2",{"text-grey-400 dark:text-grey-700":!e.getCanPreviousPage(),"dark:text-white":e.getCanPreviousPage()}),onClick:()=>e.setPageIndex(0),disabled:!e.getCanPreviousPage(),children:"<<"}),E.jsx("button",{className:gt("px-2",{"text-grey-400 dark:text-grey-700":!e.getCanPreviousPage(),"dark:text-white":e.getCanPreviousPage()}),onClick:()=>e.previousPage(),disabled:!e.getCanPreviousPage(),children:"<"}),E.jsx("button",{className:gt("px-2",{"text-grey-400 dark:text-grey-700":!e.getCanNextPage(),"dark:text-white":e.getCanNextPage()}),onClick:()=>e.nextPage(),disabled:!e.getCanNextPage(),children:">"}),E.jsx("button",{className:gt("px-2",{"text-grey-400 dark:text-grey-700":!e.getCanNextPage(),"dark:text-white":e.getCanNextPage()}),onClick:()=>e.setPageIndex(e.getPageCount()-1),disabled:!e.getCanNextPage(),children:">>"})]})]})}const EO=new Date,RO=50,Oc=30;function PO(e,n){try{const r=e.hasOwnProperty("index")?"index":e.hasOwnProperty("Index")?"Index":null,i=r?e[r]:null,a=e[n],l=typeof a,d=a?.toString().replace(/[^0-9]/g,"")?.length>=4&&(Us(n)||n.toLowerCase()==="index"||i&&typeof i=="string"&&(i.toLowerCase().includes("date")||i.toLowerCase().includes("day")||i.toLowerCase().includes("time")||i.toLowerCase().includes("timestamp")||i.toLowerCase().includes("year")||i.toLowerCase().includes("month")||i.toLowerCase().includes("week")||i.toLowerCase().includes("hour")||i.toLowerCase().includes("minute")));if(l==="string"&&a.startsWith("http")||!d)return a?.toString().length??0;if(d&&!isNaN(new Date(a).getTime())&&!Zs.test(a?.toString())){if(typeof a=="string")return a?.toString().length??0;try{const v=new Date(a);let w="";return v.getUTCHours()===0&&v.getUTCMinutes()===0&&v.getUTCSeconds()===0&&v.getMilliseconds()===0?w=v.toISOString().split("T")[0]:(w=v.toISOString(),w=`${w.split("T")[0]} ${w.split("T")[1].split(".")[0]}`),w?.toString().length??0}catch{return a?.toString().length??0}}return a?.toString().length??0}catch{return 0}}const Mc=["csv","png"];function _O({data:e,columns:n,title:r,initialTheme:i,cmd:a=""}){const[l,c]=Yo("exportType",Mc[0]),[d,h]=p.useState(!1),[v,w]=hE(i),[m,S]=p.useState(v==="dark"),y=te=>{w(v),S(te)},[P,x]=Yo("rowsPerPage",Oc,Tw),[R,T]=Yo("advanced",!1),[_,I]=Yo("colors",!1),[N,L]=p.useState([]),[U,b]=p.useState(""),[A,X]=Yo("fontSize","1"),[Q,ee]=p.useState(!1),re=n.reduce((te,de,pe)=>(te[de]=pe<RO,te),{}),[Z,W]=p.useState(re),ue=(te,de,pe)=>{const he=Math.max(...te.map(Be=>PO(Be,de)),pe?.length?pe?.length+8:0);return Math.min(200,he*12)},B=p.useMemo(()=>[...n.map((te,de)=>({accessorKey:te,accessorFn:pe=>{const Pe=pe.hasOwnProperty("index")?"index":pe.hasOwnProperty("Index")?"Index":n[0],we=Pe?pe[Pe]:null,he=pe[te],kt=(he?.toString()?.split(".")?.[0]?.replace(/[^0-9]/g,"")??"")?.length>=4&&(Us(te)||te.toLowerCase()==="index"||we&&typeof we=="string"&&(we.toLowerCase().includes("date")||we.toLowerCase().includes("time")||we.toLowerCase().includes("timestamp")||we.toLowerCase().includes("year")||we.toLowerCase().includes("month")||we.toLowerCase().includes("week")||we.toLowerCase().includes("hour")||we.toLowerCase().includes("minute")));return kt&&he?.length===4&&Zs.test(he?.toString())?he:kt?typeof he=="number"?he:new Date(he).getTime():he},id:te,header:te,size:ue(e,te,te),footer:te,cell:({row:pe})=>{const Pe=pe.original.hasOwnProperty("index")?"index":pe.original.hasOwnProperty("Index")?"Index":n[0],we=Pe?pe.original[Pe]:null,he=pe.original[te],Be=typeof he,$t=(he?.toString()?.split(".")?.[0]?.replace(/[^0-9]/g,"")??"")?.length>=4&&(Us(te)||te.toLowerCase()==="index"||we&&typeof we=="string"&&(we.toLowerCase().includes("date")||we.toLowerCase().includes("time")||we.toLowerCase().includes("timestamp")||we.toLowerCase().includes("year")));if(Be==="string"&&he.startsWith("http"))return E.jsx("a",{className:"_hyper-link",href:he,target:"_blank",rel:"noreferrer",children:he?.length>25?`${he.substring(0,25)}...`:he});if($t&&he?.length===4&&Zs.test(he?.toString()))return E.jsx("p",{children:he});if($t&&!isNaN(new Date(he).getTime())){if(typeof he=="string"){const Fe=he.split("T")[0],Ne=he.split("T")[1]?.split(".")[0];return Ne==="00:00:00"?E.jsx("p",{children:Fe}):E.jsxs("p",{children:[Fe," ",Ne]})}try{const Fe=new Date(he);let Ne="";return Fe.getUTCHours()===0&&Fe.getUTCMinutes()===0&&Fe.getUTCSeconds()===0&&Fe.getMilliseconds()===0?Ne=Fe.toISOString().split("T")[0]:(Ne=Fe.toISOString(),Ne=`${Ne.split("T")[0]} ${Ne.split("T")[1].split(".")[0]}`),E.jsx("p",{children:Ne})}catch{return E.jsx("p",{children:he})}}if(Be==="number"||mw.test(he?.toString())){let Fe=IE(he,te);const Ne=Number(dc(he));if(typeof we=="string"&&Xm(we)){Fe=Number(dc(he));const _n=Fe<2?4:2;Fe=Fe.toLocaleString("en-US",{maximumFractionDigits:_n,minimumFractionDigits:2})}return E.jsx("p",{className:gt("whitespace-nowrap",{"text-black dark:text-white":!_,"text-[#16A34A]":Ne>0&&_,"text-[#F87171]":Ne<0&&_,"text-[#404040]":Ne===0&&_}),title:Km(he).toString()??"",children:Ne!==0?Ne>0?`${Fe}`:`${Fe}`:Fe})}else if(Be==="string")return E.jsx("div",{dangerouslySetInnerHTML:{__html:gE(he)}});return E.jsx("p",{children:he})}}))],[R,_]),[q,$]=p.useState(!1),[F,G]=p.useState(B.map(te=>te.id)),O=()=>G(n.map(te=>te.id)),H=p.useMemo(()=>{const te=F.map(pe=>pe),de=B.map(pe=>pe.id);return!DE(te,de)},[F,B]),ae=aE({data:e,columns:B,getCoreRowModel:QC(),getSortedRowModel:oE(),getFilteredRowModel:nE(),getPaginationRowModel:rE(),columnResizeMode:"onChange",onColumnVisibilityChange:W,onColumnOrderChange:G,onSortingChange:L,onGlobalFilterChange:b,globalFilterFn:OE,state:{sorting:N,globalFilter:U,columnOrder:F,columnVisibility:Z},initialState:{pagination:{pageIndex:0,pageSize:typeof P=="string"?P.includes("All")?e?.length:parseInt(P):P}}}),ce=p.useRef(null),{rows:Y}=ae.getRowModel(),se=ae.getVisibleFlatColumns(),[K,oe]=p.useState(!1);return p.useEffect(()=>{d&&(h(!1),oe(!0))},[d]),E.jsxs(E.Fragment,{children:[E.jsx(m_,{toast:{id:"max-columns",title:"Max 12 columns are visible by default",description:"You can change this by clicking on advanced and then top right 'Filter' button",status:"info"},open:Q,setOpen:ee}),E.jsx(GD,{open:K,close:()=>oe(!1)}),E.jsxs("div",{ref:ce,className:gt("overflow-x-hidden h-screen"),children:[E.jsxs("div",{className:"relative p-4",id:"table",children:[E.jsx("div",{className:"absolute -inset-0.5 bg-gradient-to-r rounded-md blur-md from-[#072e49]/30 via-[#0d345f]/30 to-[#0d3362]/30"}),E.jsxs("div",{className:"border border-grey-500/60 dark:border-grey-200/60 bg-white dark:bg-grey-900 rounded overflow-hidden relative z-20",children:[E.jsxs("div",{className:"_header relative gap-4 py-2 text-center text-xs flex items-center justify-between px-4 text-white",style:{fontSize:`${Number(A)*90}%`},children:[E.jsx("div",{className:"w-1/3",children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"40",fill:"none",viewBox:"0 0 64 40",children:E.jsx("path",{fill:"#fff",d:"M61.283 3.965H33.608v27.757h25.699V19.826H37.561v-3.965H63.26V3.965h-1.977zM39.538 23.792h15.815v3.965H37.561v-3.965h1.977zM59.306 9.913v1.983H37.561V7.931h21.745v1.982zM33.606 0h-3.954v3.965H33.606V0zM25.7 3.966H0V15.86h25.7v3.965H3.953v11.896h25.7V3.966h-3.955zm0 21.808v1.983H7.907v-3.965h17.791v1.982zm0-15.86v1.982H3.953V7.931h21.745v1.982zM37.039 35.693v2.952l-.246-.246-.245-.245-.245-.247-.245-.246-.246-.246-.245-.245-.245-.247-.247-.246-.245-.246-.245-.246-.245-.246-.246-.246h-.49v3.936h.49v-3.198l.246.246.245.246.245.246.245.246.246.246.246.246.245.247.246.245.245.246.245.247.245.246.246.245.245.246h.245v-3.936h-.49zM44.938 37.17h-.491v-1.477h-2.944v3.937h3.93v-2.46h-.495zm-2.944-.246v-.739h1.962v.984h-1.962v-.245zm2.944.984v1.23h-2.944V37.66h2.944v.247zM52.835 37.17h-.49v-1.477h-2.946v3.937h3.925v-2.46h-.489zm-2.944-.246v-.739h1.963v.984h-1.965l.002-.245zm2.944.984v1.23H49.89V37.66h2.946v.247zM29.174 35.693H25.739v3.936H29.663v-.491H26.229v-.984h2.943v-.493H26.229v-1.476h3.434v-.492h-.489zM13.37 35.693H9.934v3.937h3.925v-3.937h-.49zm0 .738v2.709h-2.945v-2.955h2.943l.001.246zM21.276 35.693h-3.435v3.937h.491v-1.476h3.434v-2.461h-.49zm0 .738v1.23h-2.944v-1.476h2.944v.246z"})})}),E.jsx("p",{className:"font-bold w-1/3 flex flex-col gap-0.5 items-center",children:r}),E.jsxs("p",{className:"w-1/3 text-right text-xs",children:[new Intl.DateTimeFormat("en-GB",{dateStyle:"full",timeStyle:"long"}).format(EO).replace(/:\d\d /," "),E.jsx("br",{}),E.jsx("span",{className:"text-grey-400",children:a})]})]}),E.jsx("div",{className:"overflow-auto max-h-[calc(100vh-170px)] smh:max-h-[calc(100vh-95px)]",children:E.jsxs("table",{className:"text-sm relative",children:[E.jsx("thead",{className:"sticky top-0 bg-white dark:bg-grey-900",style:{fontSize:`${Number(A)*100}%`},children:ae.getHeaderGroups().map((te,de)=>E.jsx("tr",{children:te.headers.map((pe,Pe)=>E.jsx(WD,{setLockFirstColumn:$,lockFirstColumn:q,idx:Pe,advanced:R,header:pe,table:ae},pe.id))},te.id))}),E.jsx("tbody",{children:ae.getRowModel().rows.map((te,de)=>E.jsx("tr",{className:"!h-[64px] border-b border-grey-400",style:{fontSize:`${Number(A)*100}%`},children:te.getVisibleCells().map((pe,Pe)=>E.jsx("td",{className:gt("whitespace-normal p-4 text-black dark:text-white",{"bg-white dark:bg-grey-850":de%2===0,"bg-grey-100 dark:bg-[#202020]":de%2===1,"sticky left-0 z-10":Pe===0&&q}),style:{width:pe.column.getSize()},children:uc(pe.column.columnDef.cell,pe.getContext())},pe.id))},te.id))}),Y?.length>30&&se?.length>4&&E.jsx("tfoot",{children:ae.getFooterGroups().map(te=>E.jsx("tr",{children:te.headers.map(de=>E.jsx("th",{colSpan:de.colSpan,className:"text-grey-500 bg-grey-100 dark:bg-grey-850 font-normal text-left text-sm h-10 p-4",style:{width:de.getSize(),fontSize:`${Number(A)*100}%`},children:de.isPlaceholder?null:uc(de.column.columnDef.footer,de.getContext())},de.id))},te.id))})]})})]})]}),E.jsxs("div",{className:"smh:hidden flex max-h-[68px] overflow-x-auto bg-white/70 dark:bg-grey-900/70 backdrop-filter backdrop-blur z-20 bottom-0 left-0 w-full gap-10 justify-between py-4 px-4 text-sm",children:[E.jsxs("div",{className:"flex items-center gap-10",children:[E.jsxs(Im,{children:[E.jsx(cC,{className:"_btn",children:"Settings"}),E.jsxs(dC,{children:[E.jsx(Dm,{className:"_modal-overlay"}),E.jsxs(Om,{className:"_modal",children:[E.jsx(rc,{className:"absolute top-[40px] right-[46px] text-grey-200 hover:text-white rounded-[4px] focus:outline focus:outline-2 focus:outline-grey-500",children:E.jsx(Ws,{className:"w-6 h-6"})}),E.jsx(Mm,{className:"uppercase font-bold tracking-widest",children:"Settings"}),E.jsxs("div",{className:"grid grid-cols-2 gap-2 mt-10 text-sm",children:[H&&E.jsx("button",{onClick:()=>O(),className:"_btn h-9",children:"Reset Order"}),E.jsx(Qr,{labelType:"row",value:m?"light":"dark",onChange:te=>{y(te!=="dark")},label:"Theme",placeholder:"Select theme",groups:[{label:"Theme",items:[{label:"Dark",value:"dark"},{label:"Light",value:"light"}]}]}),E.jsx(Qr,{labelType:"row",value:l,onChange:te=>{c(te)},label:"Export type",placeholder:"Select export type",groups:[{label:"Export type",items:Mc.map(te=>({label:te,value:te}))}]}),E.jsx(Qr,{labelType:"row",value:A,onChange:X,label:"Font size",placeholder:"Select font size",groups:[{label:"Font size",items:[{label:"50%",value:"0.5"},{label:"75%",value:"0.75"},{label:"100%",value:"1"},{label:"125%",value:"1.25"},{label:"150%",value:"1.5"},{label:"175%",value:"1.75"},{label:"200%",value:"2"}]}]}),E.jsx(Wh,{table:ae,label:"Filter"}),E.jsx("div",{className:"flex gap-2 items-center",children:E.jsx(Qr,{labelType:"row",value:R?"advanced":"simple",onChange:te=>{T(te==="advanced")},label:"Type",placeholder:"Select type",groups:[{label:"Type",items:[{label:"Simple",value:"simple"},{label:"Advanced",value:"advanced"}]}]})}),E.jsxs("div",{className:"flex gap-2 items-center",children:[E.jsx("label",{htmlFor:"colors",children:"Colors"}),E.jsx("input",{id:"colors",type:"checkbox",checked:_,onChange:()=>I(!_)})]})]})]})]})]}),E.jsx(Wh,{onlyIconTrigger:!0,table:ae,label:""})]}),E.jsx(CO,{currentPage:P,setCurrentPage:x,table:ae}),E.jsx(KD,{setType:c,type:l,columns:n,data:e,downloadFinished:h})]})]})]})}function Iw(e){let n=null;return()=>(n==null&&(n=e()),n)}function TO(e,n){return e.filter(r=>r!==n)}function IO(e,n){const r=new Set,i=l=>r.add(l);e.forEach(i),n.forEach(i);const a=[];return r.forEach(l=>a.push(l)),a}class DO{enter(n){const r=this.entered.length,i=a=>this.isNodeInDocument(a)&&(!a.contains||a.contains(n));return this.entered=IO(this.entered.filter(i),[n]),r===0&&this.entered.length>0}leave(n){const r=this.entered.length;return this.entered=TO(this.entered.filter(this.isNodeInDocument),n),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(n){this.entered=[],this.isNodeInDocument=n}}class OO{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(n=>{Object.defineProperty(this.item,n,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${n}" until the drop event.`),null}})})}loadDataTransfer(n){if(n){const r={};Object.keys(this.config.exposeProperties).forEach(i=>{const a=this.config.exposeProperties[i];a!=null&&(r[i]={value:a(n,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,r)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(n,r){return r===n.getSourceId()}endDrag(){}constructor(n){this.config=n,this.item={},this.initializeExposedProperties()}}const Dw="__NATIVE_FILE__",Ow="__NATIVE_URL__",Mw="__NATIVE_TEXT__",kw="__NATIVE_HTML__",Gh=Object.freeze(Object.defineProperty({__proto__:null,FILE:Dw,HTML:kw,TEXT:Mw,URL:Ow},Symbol.toStringTag,{value:"Module"}));function Ju(e,n,r){const i=n.reduce((a,l)=>a||e.getData(l),"");return i??r}const kc={[Dw]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[kw]:{exposeProperties:{html:(e,n)=>Ju(e,n,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Ow]:{exposeProperties:{urls:(e,n)=>Ju(e,n,"").split(`
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Mw]:{exposeProperties:{text:(e,n)=>Ju(e,n,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function MO(e,n){const r=kc[e];if(!r)throw new Error(`native type ${e} has no configuration`);const i=new OO(r);return i.loadDataTransfer(n),i}function ec(e){if(!e)return null;const n=Array.prototype.slice.call(e.types||[]);return Object.keys(kc).filter(r=>{const i=kc[r];return i?.matchesTypes?i.matchesTypes.some(a=>n.indexOf(a)>-1):!1})[0]||null}const kO=Iw(()=>/firefox/i.test(navigator.userAgent)),$w=Iw(()=>!!window.safari);class Kh{interpolate(n){const{xs:r,ys:i,c1s:a,c2s:l,c3s:c}=this;let d=r.length-1;if(n===r[d])return i[d];let h=0,v=c.length-1,w;for(;h<=v;){w=Math.floor(.5*(h+v));const y=r[w];if(y<n)h=w+1;else if(y>n)v=w-1;else return i[w]}d=Math.max(0,v);const m=n-r[d],S=m*m;return i[d]+a[d]*m+l[d]*S+c[d]*m*S}constructor(n,r){const{length:i}=n,a=[];for(let y=0;y<i;y++)a.push(y);a.sort((y,P)=>n[y]<n[P]?-1:1);const l=[],c=[];let d,h;for(let y=0;y<i-1;y++)d=n[y+1]-n[y],h=r[y+1]-r[y],l.push(d),c.push(h/d);const v=[c[0]];for(let y=0;y<l.length-1;y++){const P=c[y],x=c[y+1];if(P*x<=0)v.push(0);else{d=l[y];const R=l[y+1],T=d+R;v.push(3*T/((T+R)/P+(T+d)/x))}}v.push(c[c.length-1]);const w=[],m=[];let S;for(let y=0;y<v.length-1;y++){S=c[y];const P=v[y],x=1/l[y],R=P+v[y+1]-S-S;w.push((S-P-R)*x),m.push(R*x*x)}this.xs=n,this.ys=r,this.c1s=v,this.c2s=w,this.c3s=m}}const $O=1;function Nw(e){const n=e.nodeType===$O?e:e.parentElement;if(!n)return null;const{top:r,left:i}=n.getBoundingClientRect();return{x:i,y:r}}function js(e){return{x:e.clientX,y:e.clientY}}function NO(e){var n;return e.nodeName==="IMG"&&(kO()||!(!((n=document.documentElement)===null||n===void 0)&&n.contains(e)))}function bO(e,n,r,i){let a=e?n.width:r,l=e?n.height:i;return $w()&&e&&(l/=window.devicePixelRatio,a/=window.devicePixelRatio),{dragPreviewWidth:a,dragPreviewHeight:l}}function AO(e,n,r,i,a){const l=NO(n),d=Nw(l?e:n),h={x:r.x-d.x,y:r.y-d.y},{offsetWidth:v,offsetHeight:w}=e,{anchorX:m,anchorY:S}=i,{dragPreviewWidth:y,dragPreviewHeight:P}=bO(l,n,v,w),x=()=>{let U=new Kh([0,.5,1],[h.y,h.y/w*P,h.y+P-w]).interpolate(S);return $w()&&l&&(U+=(window.devicePixelRatio-1)*P),U},R=()=>new Kh([0,.5,1],[h.x,h.x/v*y,h.x+y-v]).interpolate(m),{offsetX:T,offsetY:_}=a,I=T===0||T,N=_===0||_;return{x:I?T:R(),y:N?_:x()}}class LO{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var n;return!((n=this.globalContext)===null||n===void 0)&&n.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var n;return((n=this.optionsArgs)===null||n===void 0?void 0:n.rootElement)||this.window}constructor(n,r){this.ownerDocument=null,this.globalContext=n,this.optionsArgs=r}}function FO(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Xh(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){FO(e,a,r[a])})}return e}class jO{profile(){var n,r;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((n=this.dragStartSourceIds)===null||n===void 0?void 0:n.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const n=this.rootElement;if(n!==void 0){if(n.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");n.__isReactDndBackendSetUp=!0,this.addEventListeners(n)}}teardown(){const n=this.rootElement;if(n!==void 0&&(n.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(n,r,i){return this.sourcePreviewNodeOptions.set(n,i),this.sourcePreviewNodes.set(n,r),()=>{this.sourcePreviewNodes.delete(n),this.sourcePreviewNodeOptions.delete(n)}}connectDragSource(n,r,i){this.sourceNodes.set(n,r),this.sourceNodeOptions.set(n,i);const a=c=>this.handleDragStart(c,n),l=c=>this.handleSelectStart(c);return r.setAttribute("draggable","true"),r.addEventListener("dragstart",a),r.addEventListener("selectstart",l),()=>{this.sourceNodes.delete(n),this.sourceNodeOptions.delete(n),r.removeEventListener("dragstart",a),r.removeEventListener("selectstart",l),r.setAttribute("draggable","false")}}connectDropTarget(n,r){const i=c=>this.handleDragEnter(c,n),a=c=>this.handleDragOver(c,n),l=c=>this.handleDrop(c,n);return r.addEventListener("dragenter",i),r.addEventListener("dragover",a),r.addEventListener("drop",l),()=>{r.removeEventListener("dragenter",i),r.removeEventListener("dragover",a),r.removeEventListener("drop",l)}}addEventListeners(n){n.addEventListener&&(n.addEventListener("dragstart",this.handleTopDragStart),n.addEventListener("dragstart",this.handleTopDragStartCapture,!0),n.addEventListener("dragend",this.handleTopDragEndCapture,!0),n.addEventListener("dragenter",this.handleTopDragEnter),n.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.addEventListener("dragover",this.handleTopDragOver),n.addEventListener("dragover",this.handleTopDragOverCapture,!0),n.addEventListener("drop",this.handleTopDrop),n.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(n){n.removeEventListener&&(n.removeEventListener("dragstart",this.handleTopDragStart),n.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),n.removeEventListener("dragend",this.handleTopDragEndCapture,!0),n.removeEventListener("dragenter",this.handleTopDragEnter),n.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.removeEventListener("dragover",this.handleTopDragOver),n.removeEventListener("dragover",this.handleTopDragOverCapture,!0),n.removeEventListener("drop",this.handleTopDrop),n.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const n=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(n);return Xh({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const n=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(n);return Xh({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}isDraggingNativeItem(){const n=this.monitor.getItemType();return Object.keys(Gh).some(r=>Gh[r]===n)}beginDragNativeItem(n,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=MO(n,r),this.currentNativeHandle=this.registry.addSource(n,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(n){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=n;const r=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var i;return(i=this.rootElement)===null||i===void 0?void 0:i.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},r)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var n;(n=this.window)===null||n===void 0||n.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(n,r){n.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}handleDragEnter(n,r){this.dragEnterTargetIds.unshift(r)}handleDragOver(n,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}handleDrop(n,r){this.dropTargetIds.unshift(r)}constructor(n,r,i){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=a=>{const l=this.sourceNodes.get(a);return l&&Nw(l)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=a=>!!(a&&this.document&&this.document.body&&this.document.body.contains(a)),this.endDragIfSourceWasRemovedFromDOM=()=>{const a=this.currentDragSourceNode;a==null||this.isNodeInDocument(a)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=a=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(a||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=a=>{if(a.defaultPrevented)return;const{dragStartSourceIds:l}=this;this.dragStartSourceIds=null;const c=js(a);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(l||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:c});const{dataTransfer:d}=a,h=ec(d);if(this.monitor.isDragging()){if(d&&typeof d.setDragImage=="function"){const w=this.monitor.getSourceId(),m=this.sourceNodes.get(w),S=this.sourcePreviewNodes.get(w)||m;if(S){const{anchorX:y,anchorY:P,offsetX:x,offsetY:R}=this.getCurrentSourcePreviewNodeOptions(),I=AO(m,S,c,{anchorX:y,anchorY:P},{offsetX:x,offsetY:R});d.setDragImage(S,I.x,I.y)}}try{d?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(a.target);const{captureDraggingState:v}=this.getCurrentSourcePreviewNodeOptions();v?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(h)this.beginDragNativeItem(h);else{if(d&&!d.types&&(a.target&&!a.target.hasAttribute||!a.target.hasAttribute("draggable")))return;a.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=a=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var l;(l=this.currentNativeSource)===null||l===void 0||l.loadDataTransfer(a.dataTransfer)}if(!this.enterLeaveCounter.enter(a.target)||this.monitor.isDragging())return;const{dataTransfer:d}=a,h=ec(d);h&&this.beginDragNativeItem(h,d)},this.handleTopDragEnter=a=>{const{dragEnterTargetIds:l}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=a.altKey,l.length>0&&this.actions.hover(l,{clientOffset:js(a)}),l.some(d=>this.monitor.canDropOnTarget(d))&&(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=a=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var l;(l=this.currentNativeSource)===null||l===void 0||l.loadDataTransfer(a.dataTransfer)}},this.handleTopDragOver=a=>{const{dragOverTargetIds:l}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none");return}this.altKeyPressed=a.altKey,this.lastClientOffset=js(a),this.scheduleHover(l),(l||[]).some(d=>this.monitor.canDropOnTarget(d))?(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?a.preventDefault():(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=a=>{this.isDraggingNativeItem()&&a.preventDefault(),this.enterLeaveCounter.leave(a.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=a=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var l;a.preventDefault(),(l=this.currentNativeSource)===null||l===void 0||l.loadDataTransfer(a.dataTransfer)}else ec(a.dataTransfer)&&a.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=a=>{const{dropTargetIds:l}=this;this.dropTargetIds=[],this.actions.hover(l,{clientOffset:js(a)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=a=>{const l=a.target;typeof l.dragDrop=="function"&&(l.tagName==="INPUT"||l.tagName==="SELECT"||l.tagName==="TEXTAREA"||l.isContentEditable||(a.preventDefault(),l.dragDrop()))},this.options=new LO(r,i),this.actions=n.getActions(),this.monitor=n.getMonitor(),this.registry=n.getRegistry(),this.enterLeaveCounter=new DO(this.isNodeInDocument)}}const VO=function(n,r,i){return new jO(n,r,i)};function zO(){const[e,n]=p.useState(null),[r,i]=p.useState("Interactive Table");p.useEffect(()=>{const c=setInterval(()=>{if(window.json_data){const d=JSON.parse(window.json_data);console.log(d),n(d),d.title&&typeof d.title=="string"&&i(d.title),clearInterval(c)}},100);return()=>clearInterval(c)},[]);const l=(c=>{if(!c)return null;const d=c.title?.replace(/<b>|<\/b>/g,"").replace(/ /g,"_"),h=new Date().toISOString().slice(0,10).replace(/-/g,""),v=new Date().toISOString().slice(11,19).replace(/:/g,"");window.title=`openbb_${d}_${h}_${v}`;const w=c.columns;c.index;const S=c.data.map((y,P)=>{const x={};return y.forEach((R,T)=>{x[w[T]]=R||(R===0?0:"")}),x});return{columns:w,data:S}})(e);return E.jsx("div",{className:"relative h-full bg-white dark:bg-black text-black dark:text-white",children:E.jsx(aD,{backend:VO,children:l&&E.jsx(_O,{title:r,data:l.data,columns:l.columns,initialTheme:e.theme&&typeof e.theme=="string"&&e.theme==="dark"?"dark":"light",cmd:e?.command_location??""})})})}const HO=VS.createRoot(document.getElementById("root"));HO.render(E.jsx(Ye.StrictMode,{children:E.jsx(zO,{})}));</script>
    <style rel="stylesheet" crossorigin>*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}._input{height:25px;width:100%;border-radius:.25rem;border-width:1.5px;border-color:#c8c8c8;background-color:#f6f6f6;padding:.25rem .5rem;font-size:.75rem;line-height:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._input:focus{border-color:gray}._input:active{border-color:gray}._input:disabled{border-color:#5a5a5a}._input:is(.dark *){border-color:#474747;background-color:#070707;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));outline-width:1px}._input:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}._input:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}._input:active:is(.dark *){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}._btn{display:inline-flex;width:100%;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap;border-radius:.25rem;padding:.5rem 1.5rem;text-align:center;text-decoration-line:none!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}@media (min-width: 768px){._btn{width:-moz-fit-content;width:fit-content}}._btn{background-color:#2a2a2a;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}._btn:hover{background-color:#5a5a5a}._btn:focus{outline-style:solid;outline-width:2px;outline-color:gray}._btn:disabled{background-color:#c8c8c8;color:gray}._btn:disabled:active{background-color:#c8c8c8;color:gray}._btn:is(.dark *){background-color:#eaeaea;color:#2a2a2a}._btn:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}._btn:active:is(.dark *){background-color:#dcdcdc}._btn:active:hover:is(.dark *){color:#070707}._btn-tertiary{display:inline-flex;width:100%;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap;border-radius:.25rem;padding:.5rem 1.5rem;text-align:center;text-decoration-line:none!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}@media (min-width: 768px){._btn-tertiary{width:-moz-fit-content;width:fit-content}}._btn-tertiary{background-color:#070707;color:#f6f6f6}._btn-tertiary:hover{background-color:#2a2a2a;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}._btn-tertiary:focus{background-color:#070707;outline-style:solid;outline-width:2px;outline-color:gray}._btn-tertiary:active{background-color:#474747;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}._btn-tertiary:disabled{background-color:gray;color:#474747}._hyper-link{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1));text-decoration-line:underline}._hyper-link:hover{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}._hyper-link:active{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}._hyper-link:disabled{color:#5a5a5a}._modal{border-radius:.25rem;border-width:1px;border-color:#5a5a5a;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:fixed;top:50%;left:50%;z-index:50;max-height:608px;width:90%;max-width:568px;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));overflow:auto;background-color:#070707;padding:.5rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));transition-duration:.3s}._modal:focus{outline:2px solid transparent;outline-offset:2px}@media (min-width: 768px){._modal{padding:2.5rem}}._modal-overlay{position:fixed;inset:0;z-index:40;background-color:#070707;opacity:.6}._modal-title{font-size:1.125rem;line-height:1.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-inset-0\.5{inset:-.125rem}.inset-x-4{left:1rem;right:1rem}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.left-0{left:0}.left-\[8px\]{left:8px}.right-0{right:0}.right-4{right:1rem}.right-5{right:1.25rem}.right-\[46px\]{right:46px}.top-0{top:0}.top-7{top:1.75rem}.top-\[25px\]{top:25px}.top-\[40px\]{top:40px}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.mr-1{margin-right:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.\!table{display:table!important}.table{display:table}.grid{display:grid}.hidden{display:none}.\!h-\[64px\]{height:64px!important}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[25px\]{height:25px}.h-\[36px\]{height:36px}.h-\[70px\]{height:70px}.h-\[72px\]{height:72px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[500px\]{max-height:500px}.max-h-\[68px\]{max-height:68px}.max-h-\[calc\(100vh-170px\)\]{max-height:calc(100vh - 170px)}.w-0\.5{width:.125rem}.w-1\/3{width:33.333333%}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-\[25px\]{width:25px}.w-auto{width:auto}.w-full{width:100%}.max-w-\[216px\]{max-width:216px}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-\[5px\]{gap:5px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-\[3px\]{border-radius:3px}.rounded-\[4px\]{border-radius:4px}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-\[1\.5px\]{border-width:1.5px}.border-b{border-bottom-width:1px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity, 1))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity, 1))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(22 163 74 / var(--tw-border-opacity, 1))}.border-grey-200{border-color:#dcdcdc}.border-grey-400{border-color:#a2a2a2}.border-grey-500\/60{border-color:#80808099}.border-grey-700{border-color:#474747}.border-orange-600{--tw-border-opacity: 1;border-color:rgb(234 88 12 / var(--tw-border-opacity, 1))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-grey-100{background-color:#eaeaea}.bg-grey-200{background-color:#dcdcdc}.bg-grey-300\/20{background-color:#c8c8c833}.bg-grey-850{background-color:#131313}.bg-grey-900{background-color:#070707}.bg-orange-200{--tw-bg-opacity: 1;background-color:rgb(254 215 170 / var(--tw-bg-opacity, 1))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/70{background-color:#ffffffb3}.bg-white\/80{background-color:#fffc}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\[\#072e49\]\/30{--tw-gradient-from: rgb(7 46 73 / .3) var(--tw-gradient-from-position);--tw-gradient-to: rgb(7 46 73 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-\[\#0d345f\]\/30{--tw-gradient-to: rgb(13 52 95 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(13 52 95 / .3) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-\[\#0d3362\]\/30{--tw-gradient-to: rgb(13 51 98 / .3) var(--tw-gradient-to-position)}.p-0\.5{padding:.125rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-\[5px\]{padding:5px}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-\[40px\]{padding-left:40px;padding-right:40px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pl-10{padding-left:2.5rem}.pl-3{padding-left:.75rem}.pl-\[25px\]{padding-left:25px}.pr-\[35px\]{padding-right:35px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-\[10px\]{font-size:10px}.text-\[13px\]{font-size:13px}.text-\[8px\]{font-size:8px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.uppercase{text-transform:uppercase}.leading-\[25px\]{line-height:25px}.leading-none{line-height:1}.tracking-widest{letter-spacing:.1em}.text-\[\#16A34A\]{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-\[\#404040\]{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity, 1))}.text-\[\#669DCB\]{--tw-text-opacity: 1;color:rgb(102 157 203 / var(--tw-text-opacity, 1))}.text-\[\#F87171\]{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-grey-200{color:#dcdcdc}.text-grey-400{color:#a2a2a2}.text-grey-500{color:gray}.text-grey-600{color:#5a5a5a}.text-grey-700{color:#474747}.text-grey-800{color:#2a2a2a}.text-grey-900{color:#070707}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_2px_10px\]{--tw-shadow: 0 2px 10px;--tw-shadow-colored: 0 2px 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0px_10px_38px_-10px_rgba\(22\,_23\,_24\,_0\.35\)\,0px_10px_20px_-15px_rgba\(22\,_23\,_24\,_0\.2\)\]{--tw-shadow: 0px 10px 38px -10px rgba(22, 23, 24, .35),0px 10px 20px -15px rgba(22, 23, 24, .2);--tw-shadow-colored: 0px 10px 38px -10px var(--tw-shadow-color), 0px 10px 20px -15px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-black\/10{--tw-shadow-color: rgb(0 0 0 / .1);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-md{--tw-blur: blur(12px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}._header{background:#062d48;background:linear-gradient(90deg,#062d48,#0b3054 15%,#0e386c 45%,#0b203d 64%,#06101a 82%,#060709)}body{font-family:Arial,monospace}table{width:100%;table-layout:auto}table thead,table tfoot,table tbody tr{display:table;width:100%;table-layout:fixed;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}th,td{word-wrap:break-word;overflow:hidden;text-overflow:ellipsis}.resizer{cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:none;transition:opacity .2s ease-in-out}.resizer.isResizing{background:#fff;opacity:1}@media (hover: hover){.resizer{opacity:0}*:hover>.resizer{opacity:1}}::-webkit-scrollbar{width:20px}::-webkit-scrollbar-track{background-color:transparent}::-webkit-scrollbar-thumb{background-color:#d6dee1;border-radius:20px;border:6px solid transparent;background-clip:content-box}::-webkit-scrollbar-thumb:hover{background-color:#a8bbbf}::-webkit-scrollbar-corner{background:#0000}table thead th{position:sticky;top:0}.saving{position:absolute;z-index:9999999;top:50%;left:50%;transform:translate(-50%,-50%);height:100px;width:200px;display:none;justify-content:center;align-items:center;background-color:#000000b3;color:#fff;box-shadow:0 0 10px #00000080;border:1px solid rgba(250,250,250,.5);font-size:.9em;border-radius:20px;animation:popup .3s ease-in-out}.saving.show{display:flex}.loader{position:relative;bottom:0;right:-5px;border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #00acff;width:20px;height:20px;animation:spin 1.5s linear infinite;opacity:1}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.hover\:bg-grey-300:hover{background-color:#c8c8c8}.hover\:text-grey-800:hover{color:#2a2a2a}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.focus\:shadow-\[0_0_0_2px\]:focus{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:shadow-black:focus{--tw-shadow-color: #000;--tw-shadow: var(--tw-shadow-colored)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:outline:focus{outline-style:solid}.focus\:outline-2:focus{outline-width:2px}.focus\:outline-grey-500:focus{outline-color:gray}.focus-visible\:ring:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-purple-500:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(168 85 247 / var(--tw-ring-opacity, 1))}.focus-visible\:ring-opacity-75:focus-visible{--tw-ring-opacity: .75}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[highlighted\]\:bg-grey-600[data-highlighted]{background-color:#5a5a5a}.data-\[disabled\]\:text-grey-400[data-disabled]{color:#a2a2a2}.data-\[highlighted\]\:text-white[data-highlighted],.data-\[placeholder\]\:text-white[data-placeholder]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.data-\[highlighted\]\:outline-none[data-highlighted]{outline:2px solid transparent;outline-offset:2px}.dark\:border-grey-200\/60:is(.dark *){border-color:#dcdcdc99}.dark\:border-grey-800:is(.dark *){border-color:#2a2a2a}.dark\:bg-\[\#202020\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(32 32 32 / var(--tw-bg-opacity, 1))}.dark\:bg-black:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.dark\:bg-grey-800:is(.dark *){background-color:#2a2a2a}.dark\:bg-grey-850:is(.dark *){background-color:#131313}.dark\:bg-grey-900:is(.dark *){background-color:#070707}.dark\:bg-grey-900\/70:is(.dark *){background-color:#070707b3}.dark\:bg-grey-900\/80:is(.dark *){background-color:#070707cc}.dark\:text-grey-700:is(.dark *){color:#474747}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:hover\:bg-grey-800:hover:is(.dark *){background-color:#2a2a2a}.dark\:hover\:bg-white:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.md\:left-1\/2{left:50%}.md\:left-\[25px\]{left:25px}.md\:right-7{right:1.75rem}.md\:flex{display:flex}.md\:max-w-\[658px\]{max-width:658px}.md\:-translate-x-\[50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\:px-\[58px\]{padding-left:58px;padding-right:58px}.md\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 1024px){.lg\:flex{display:flex}}@media (max-height: 450px){.smh\:hidden{display:none}.smh\:max-h-\[calc\(100vh-95px\)\]{max-height:calc(100vh - 95px)}}@media (min-width: 890px){.mdl\:block{display:block}}</style>
  </head>
  <body>
    <div id="root"></div>
  </body>
</html>
